[GRASS-dev] [GRASS GIS] #612: g.html2man: parsing leads to man page errors
GRASS GIS
trac at osgeo.org
Sun Jul 28 20:04:30 PDT 2013
#612: g.html2man: parsing leads to man page errors
------------------------------+---------------------------------------------
Reporter: hamish | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: Docs | Version: svn-develbranch6
Keywords: g.html2man, utf8 | Platform: Unspecified
Cpu: All |
------------------------------+---------------------------------------------
Changes (by hamish):
* keywords: g.html2man => g.html2man, utf8
Comment:
(G6.x only)
re. `man` treating flag names as hyphens and breaking them for cut & paste
when utf8 is used, here's some post-processing sed regex to catch many of
them:
{{{
sed -i -e 's/\([ ([]\)-\([a-z]\)/\1\\-\2/g' \
-e 's/\([ []\)--\([a-z]\)/\1\\-\\-\2/g' \
-e 's/\[-\\fB/[\\-\\fB/' \
-e 's/\[--\\fB/[\\-\\-\\fB/g' \
-e 's/"\\fB-\([a-zA-Z0-9]\)/"\\fB\\-\1/' \
-e 's/"\\fB--\([a-zA-Z0-9]\)/"\\fB\\-\\-\1/' \
"$man_page"
}}}
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/612#comment:11>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list