[GRASS-SVN] r30369 - grass/trunk/tools/g.html2man
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 26 18:26:24 EST 2008
Author: hamish
Date: 2008-02-26 18:26:24 -0500 (Tue, 26 Feb 2008)
New Revision: 30369
Modified:
grass/trunk/tools/g.html2man/g.html2man
Log:
line breaks for <DD>, less strict with <TD>
Modified: grass/trunk/tools/g.html2man/g.html2man
===================================================================
--- grass/trunk/tools/g.html2man/g.html2man 2008-02-26 22:56:40 UTC (rev 30368)
+++ grass/trunk/tools/g.html2man/g.html2man 2008-02-26 23:26:24 UTC (rev 30369)
@@ -194,7 +194,7 @@
if (m#^ *<DD> *$#i) {return 0};
if (m#^ *</DD> *$#i) {return 0};
if (m#^</LI>$#i) {return 0};
- s#<DD>##i;
+ s#<DD>#\n.br\n#i;
s#</DD>##i;
s#^.*<DL> *$##i;
@@ -221,7 +221,9 @@
$nb_n[$in_nb]++ # because we post-increment after encountering each <li>
);
}
- s/<TD>/\t| /gi;
+
+ # move into CvtTable() ??
+ s/<TD.*?>/\t| /gi;
s/<TR.*?>/\n.br\n/i;
return 1;
More information about the grass-commit
mailing list