#977 man: minus in NAME section not escaped

output: manpages
closed-fixed
XSL (1066)
7
2008-03-01
2008-02-15
Daniel Leidert
No

I think, this is an important bug. Process any refentry and the resulting man-page will contain:

.SH "NAME"
foo - does this

instead of

.SH "NAME"
foo \- does this

The comment in the refnamediv template says, that the minus will be replaced by the apply-string-subst-map. But this doesn't happen. I did not yet examine, why not (maybe a regression from the change-back from 1.72 to 1.73?). Reproducible in the snapshot too.

Discussion

  • Daniel Leidert
    Daniel Leidert
    2008-02-15

    • priority: 5 --> 8
     
  • Daniel Leidert
    Daniel Leidert
    2008-02-15

    • priority: 8 --> 7
     
  • Daniel Leidert
    Daniel Leidert
    2008-02-15

    Logged In: YES
    user_id=1102637
    Originator: YES

    Priority increased, because the format is important here.

     
  • Logged In: YES
    user_id=118135
    Originator: NO

    A fix for this issue has been added to the current codebase.
    Please test the fix with the latest snapshot from:

    http://docbook.sourceforge.net/snapshots/

     
    • assigned_to: nobody --> xmldoc
    • status: open --> open-fixed
     
    • status: open-fixed --> pending-fixed
     
  • Logged In: YES
    user_id=118135
    Originator: NO

    Daniel,

    Thanks for catching this. Definitely a bug -- caused, I think, by changes I made a while back in handling of groff special characters. Anyway, fixed now, by revision 7674

     
    • status: pending-fixed --> closed-fixed
     
  • Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).