[GRASS-dev] Re: [GRASS GIS] #612: g.html2man: parsing leads to man
page errors
GRASS GIS
trac at osgeo.org
Thu May 28 03:46:38 EDT 2009
#612: g.html2man: parsing leads to man page errors
--------------------------+-------------------------------------------------
Reporter: hamish | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: Docs | Version: 6.4.0 RCs
Resolution: | Keywords: g.html2man
Platform: Unspecified | Cpu: All
--------------------------+-------------------------------------------------
Comment (by hamish):
Replying to [comment:3 glynn]:
> How is the script supposed to determine whether a '-' in the HTML
> is a minus or a hyphen?
fwiw, lintian's perl detection goes like:
http://ftp.de.debian.org/debian/pool/main/l/lintian/lintian_2.2.10.tar.gz
{{{
# Catch hyphens used as minus signs by looking for ones at the
# beginning of a word, but don't generate false positives on \s-1
# (small font), \*(-- (pod2man long dash), or things like \h'-1'.
if ($line =~ /^(
([^\.].*)?
[\s\'\"\`\(\[]
(?<! \\s | \*\( | \(- | \w\' )
)?
(--?\w+)/ox) {
}}}
> For now, I've changed it to convert all occurrences of '-' to '\-'.
ok; cosmetic rendering errors are better than syntax ones I guess.
cheers,
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/612#comment:4>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list