[Python-checkins] r64705 - in doctools/branches/0.4.x: CHANGES sphinx/latexwriter.py
georg.brandl
python-checkins at python.org
Fri Jul 4 19:38:38 CEST 2008
Author: georg.brandl
Date: Fri Jul 4 19:38:37 2008
New Revision: 64705
Log:
Remove silly "rubric" restriction in latex writer.
Modified:
doctools/branches/0.4.x/CHANGES
doctools/branches/0.4.x/sphinx/latexwriter.py
Modified: doctools/branches/0.4.x/CHANGES
==============================================================================
--- doctools/branches/0.4.x/CHANGES (original)
+++ doctools/branches/0.4.x/CHANGES Fri Jul 4 19:38:37 2008
@@ -3,13 +3,17 @@
* Added sub-/superscript node handling to TextBuilder.
-* Label names in references are now case-insensitive, since reST label
- names are always lowercased.
+* Label names in references are now case-insensitive, since reST
+ label names are always lowercased.
* Fix linkcheck builder crash for malformed URLs.
* Add compatibility for admonitions and docutils 0.5.
+* Remove the silly restriction on "rubric" in the LaTeX writer: you
+ can now write arbitrary "rubric" directives, and only those with
+ a title of "Footnotes" will be ignored.
+
Release 0.4 (Jun 23, 2008)
==========================
Modified: doctools/branches/0.4.x/sphinx/latexwriter.py
==============================================================================
--- doctools/branches/0.4.x/sphinx/latexwriter.py (original)
+++ doctools/branches/0.4.x/sphinx/latexwriter.py Fri Jul 4 19:38:37 2008
@@ -419,8 +419,10 @@
def visit_rubric(self, node):
if len(node.children) == 1 and node.children[0].astext() == 'Footnotes':
raise nodes.SkipNode
- self.builder.warn('encountered rubric node not used for footnotes, '
- 'content will be lost')
+ self.body.append('\\paragraph{')
+ self.context.append('}\n')
+ def depart_rubric(self, node):
+ self.body.append(self.context.pop())
def visit_footnote(self, node):
# XXX not optimal, footnotes are at section end
More information about the Python-checkins
mailing list