Patches item #3527397, was opened at 2012-05-16 13:42
Message generated for change (Tracker Item Submitted) made by joshuagraff
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=422032&aid=3527397&group_id=38414
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Joshua Graff (joshuagraff)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add indentation to literal blocks in manpage writer
Initial Comment:
The current manpage writer does not add or maintain any type of indentation on literal blocks.
Example:
$ cat example.rst
=====
Title
=====
:Version: 1.1
:Author: joe.user@...
Example
=======
Example::
$ man ls
$ rst2man.py example.rst > example.man
$ man ./example.man
NAME
Title -
EXAMPLE
Example:
$ man ls
AUTHOR
joe.user@...
In the above example '$ man ls' starts at the same indentation level as 'Example:', which
seems difficult to read. A solution that has worked well for me is to treat literal blocks
like block quotes in the manpage writer.
Example:
$ rst2man.py example.rst > example.man
$ man ./example.man
NAME
Title -
EXAMPLE
Example:
$ man ls
AUTHOR
joe.user@...
Attached is patch to indent literal blocks like block quotes which I hope others may find
useful.
-Josh
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=422032&aid=3527397&group_id=38414
|