After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 602334 - Man parser problem with quoted arguments
Man parser problem with quoted arguments
Status: RESOLVED FIXED
Product: yelp
Classification: Applications
Component: Man Pages
git master
Other Linux
: Normal minor
: ---
Assigned To: Yelp maintainers
Yelp maintainers
Depends on:
Blocks:
 
 
Reported: 2009-11-18 19:12 UTC by evfool
Modified: 2010-12-20 16:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
scrambled fonts (127.84 KB, image/png)
2009-11-18 19:12 UTC, evfool
  Details
Patch for the alternating styles (1.41 KB, patch)
2009-11-27 00:15 UTC, evfool
none Details | Review

Description evfool 2009-11-18 19:12:54 UTC
Created attachment 148069 [details]
scrambled fonts

When opening any man page from the adduser package, the man pages do not display correctly, because of the .BR man macro argument handling. The parser assumes, that when no closing " appears in case of quoted arguments, the " character should appear in the argument. In terminal man if the closing " does not appear, the argument ends at line end. This should work like this in yelp too, shouldn't it?

Man source for the screenshot:
If 
.BR adduser " is called with the " \-\-group " option and without the
.BR \-\-system " option, or " addgroup " is called respectively, a user
group will be added.

See screenshot.
Comment 1 evfool 2009-11-27 00:15:36 UTC
Created attachment 148568 [details] [review]
Patch for the alternating styles

Patch to fix argument parsing in case of arguments without a closing double-quote. These arguments are handled as arguments ended by EOL, as in man.
Comment 2 Shaun McCance 2010-12-20 16:31:55 UTC
Fixed by Rupert's gutting of the man-parsing code.