From: SourceForge.net <no...@so...> - 2012-07-04 15:26:43
|
Patches item #3527397, was opened at 2012-05-16 13:42 Message generated for change (Comment added) made by grubert 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: Closed Resolution: None Priority: 5 Private: No Submitted By: Joshua Graff (joshuagraff) Assigned to: engelbert gruber (grubert) 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...@ex... Example ======= Example:: $ man ls $ rst2man.py example.rst > example.man $ man ./example.man NAME Title - EXAMPLE Example: $ man ls AUTHOR joe...@ex... 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...@ex... Attached is patch to indent literal blocks like block quotes which I hope others may find useful. -Josh ---------------------------------------------------------------------- Comment By: engelbert gruber (grubert) Date: 2012-07-04 08:26 Message: Thank you for your contribution! It has been checked in to the Docutils repository. You can download the most current snapshot from: http://docutils.sourceforge.net/docutils-snapshot.tgz ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=422032&aid=3527397&group_id=38414 |