#194 rst2man does not escape '.' at the start of the line

closed-fixed
5
2013-03-08
2012-05-29
tujikawa
No

rst2man does not escape '.' at the start of the line. As a result, if the world ".hello" is located at the start of the line, rst2man just copies the word unescaped and man(1) treats it as a macro and finally the word disappears.

Example:
$ cat bug.rst
TITLE
=====

.hello
world

$ rst2man < bug.rst > bug.1
$ cat bug.1
.TH TITLE "" "" ""
.SH NAME
TITLE \-
.\" Man page generated from reStructeredText.
.
.sp
.hello
world
.\" Generated by docutils manpage writer.
.\"
.
$ # See .hello is copied verbatim.
$ man -l bug.1
TITLE() TITLE()

NAME
TITLE -

world
$ # See .hello disappeared.

Version: docutils 0.8.1-6 Debian

Discussion

  • Fix [3607063] handle lines starting with a period.

     
    • assigned_to: nobody --> grubert
    • labels: --> manpage writer
    • status: open --> closed-fixed