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 652277 - Full stops in first column need to be escaped in man page output
Full stops in first column need to be escaped in man page output
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.7.4
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2011-06-10 11:33 UTC by Mattias Ellert
Modified: 2011-12-03 18:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Remove single quote in output when writing a dot (437 bytes, patch)
2011-08-27 12:23 UTC, albert
none Details | Review

Description Mattias Ellert 2011-06-10 11:33:25 UTC
The following mark up:

/**
@page installation How to install
@brief This section describes the installation process

To intall the software do

@code
tar -zxf code-1.0.tar.gz
cd code-1.0
autoreconf -f
./configure
make
make install
@endcode
*/

generates a man page that when view with man looks like:

NAME
       installation - How to install This section describes the installation
       process

       To intall the software do

       tar -zxf code-1.0.tar.gz
       cd code-1.0
       autoreconf -f
       make
       make install


As can be seen the line "./configure" is not displayed. The line is present in the generated man page, but man uses periods in the first column to indicate a macro - so man treats the line as on undefined macro and displays nothing.


PS. Should really both the page title and the brief description be displayed on the first line to the right of the hyphen? It think this looks odd.
Comment 1 Bas Wijnen 2011-07-18 20:39:18 UTC
Debian's lintian says about this:

N:    This test uses man's --warnings option to enable groff warnings that
N:    catch common mistakes, such as putting . or ' characters at the start of
N:    a line when they are intended as literal text rather than groff
N:    commands. This can be fixed either by reformatting the paragraph so that
N:    these characters are not at the start of a line, or by adding a
N:    zero-width space (\&) immediately before them.
Comment 2 Dimitri van Heesch 2011-08-10 12:22:00 UTC
(In reply to comment #1)
> Debian's lintian says about this:
> 
> N:    This test uses man's --warnings option to enable groff warnings that
> N:    catch common mistakes, such as putting . or ' characters at the start of
> N:    a line when they are intended as literal text rather than groff
> N:    commands. This can be fixed either by reformatting the paragraph so that
> N:    these characters are not at the start of a line, or by adding a
> N:    zero-width space (\&) immediately before them.

Thanks for the tip. This works fine.
Comment 3 Dimitri van Heesch 2011-08-14 14:04:51 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.5. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.
Comment 4 albert 2011-08-27 12:23:07 UTC
Created attachment 194917 [details] [review]
Remove single quote in output when writing a dot

I get the impression that the ' (single quote) should not be in the filter subroutine in mandocvisitor.cpp
Comment 5 Dimitri van Heesch 2011-08-27 13:43:07 UTC
Indeed. I'll take over the patch.
Comment 6 Howard Chu 2011-09-19 19:41:15 UTC
Ah sorry, I just submitted this same patch in Bug#659514
Comment 7 Dimitri van Heesch 2011-12-03 18:22:50 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.6. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.