[GRASS-dev] Re: [GRASS GIS] #1175: tools/mkhtml.py bug

GRASS GIS trac at osgeo.org
Fri Sep 24 08:34:06 EDT 2010


#1175: tools/mkhtml.py bug
------------------------+---------------------------------------------------
  Reporter:  neteler    |       Owner:  grass-dev@…              
      Type:  defect     |      Status:  closed                   
  Priority:  critical   |   Milestone:  7.0.0                    
 Component:  Compiling  |     Version:  svn-trunk                
Resolution:  fixed      |    Keywords:                           
  Platform:  All        |         Cpu:  All                      
------------------------+---------------------------------------------------

Comment(by glynn):

 Replying to [comment:4 neteler]:
 > Thanks, now it works.

 Actually, there are some more fundamental issues; e.g. generation of <a
 name=...> tags; the generated i.atcorr.html has:
 {{{
     <li><a href="#<font color=&quot;red&quot;>REMAINING DOCUMENTATION
 ISSUES</font>"><font color=&quot;red&quot;>REMAINING DOCUMENTATION
 ISSUES</font></a></li>
 }}}

 This corresponds to:
 {{{
 <h2><font color="red">REMAINING DOCUMENTATION ISSUES</font></h2>
 }}}
 in the source file. It appears that the code is using everything inside
 the <h2>, tags and all.

 This indicates a more fundamental problem with the changes, namely trying
 to parse HTML using a bunch of regexps. This reduces the format of the
 <module>.html files from something defined by a specification to "whatever
 doesn't break mkhtml.py".

 So I've reverted the TOC-related changes entirely in r43667.

 If someone wants to actually process the HTML, there's a working HTML
 parser in tools/g.html2man.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1175#comment:5>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list