Description of problem: groff wrongly formats .SS containing a quotation mark. Version-Release number of selected component (if applicable): groff-1.21-3.fc16.x86_64 How reproducible: always Steps to Reproduce: 1.man ./attached 2. 3. Actual results: foo foo foo"" Expected results: foo foo "foo" Additional info:
FWIW .SS \&"foo\&" becomes "foo". quoting strings containing a quotation mark seems introducing this issue.
> Steps to Reproduce: > 1.man ./attached Akira, please, can you attach the input file?
Created attachment 587372 [details] minimal groff code to reproduce Doh! sorry for that. BTW I realized this issue on fonts-conf.5 from fontconfig. the attached file is the minimal requirements to reproduce this issue.
Akira, I believe this is not a bug. \& is a zero-width character, its intended use is to stop interaction of a character with its surrounding [1]. It does not escape anything. If you want to use double quotes in macro arguments, you should use either double quote glyph \(dq or double the double quote character [2]. Both solutions work: .SS """foo""" .SS "\(dqfoo\(dq" Do you agree? Usage of zero-width-character in font-config man page is IMHO wrong. The manpage is autogenerated using docbook, so I think this is a bug in docbook2man. [1] http://www.gnu.org/software/groff/manual/html_node/Ligatures-and-Kerning.html [2] http://www.gnu.org/software/groff/manual/html_node/Request-and-Macro-Arguments.html
docbook-utils: https://bugzilla.redhat.com/show_bug.cgi?id=826139 fontconfig: https://bugzilla.redhat.com/show_bug.cgi?id=826145
Aha. thanks for the explanation. please feel free to close this then.