|
From: <mi...@us...> - 2017-06-18 19:09:42
|
Revision: 8116
http://sourceforge.net/p/docutils/code/8116
Author: milde
Date: 2017-06-18 19:09:40 +0000 (Sun, 18 Jun 2017)
Log Message:
-----------
Apply [ 141 ] Handling inline in manpage writer.
Thanks to Masatake YAMATO for report and patch.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/docutils/writers/manpage.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2017-06-16 20:50:47 UTC (rev 8115)
+++ trunk/docutils/HISTORY.txt 2017-06-18 19:09:40 UTC (rev 8116)
@@ -77,7 +77,7 @@
- Fix [ 312 ] HTML writer generates invalid HTML if the table has two tags.
- Fix [ 319 ] The MathJax CDN shut down on April 30, 2017. For security
reasons, we don't use a third party public installation as default but
- warn if math-output_ is set to MathJax without URL.
+ warn if math-output_ is set to MathJax without specifying a URL.
* docutils/writers/html4css1/__init__.py
@@ -89,6 +89,10 @@
in a "DUclass" environment. This replaces the special handling for
"epigraph" and "topic" elements.
+* docutils/writers/manpage.py
+
+ - Apply [ 141 ] Handling inline in manpage writer.
+
* docutils/writers/odf_odt/__init__.py:
- Command setting ``language`` now sets the default language
Modified: trunk/docutils/docutils/writers/manpage.py
===================================================================
--- trunk/docutils/docutils/writers/manpage.py 2017-06-16 20:50:47 UTC (rev 8115)
+++ trunk/docutils/docutils/writers/manpage.py 2017-06-18 19:09:40 UTC (rev 8116)
@@ -403,7 +403,7 @@
self.defs['strong'][0],
self.language.labels.get(name, name).upper(),
self.defs['strong'][1],
- )
+ )
self.body.append(name)
self.visit_block_quote(node)
@@ -755,6 +755,12 @@
depart_important = depart_admonition
+ def visit_inline(self, node):
+ pass
+
+ def depart_inline(self, node):
+ pass
+
def visit_label(self, node):
# footnote and citation
if (isinstance(node.parent, nodes.footnote)
@@ -818,7 +824,7 @@
# BUG/HACK: indent alway uses the _last_ indention,
# thus we need two of them.
self.indent(LITERAL_BLOCK_INDENT)
- self.indent(0)
+ self.indent(0)
self.body.append(self.defs['literal_block'][0])
self._in_literal = True
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|