|
From: <mi...@us...> - 2020-10-28 11:51:26
|
Revision: 8572
http://sourceforge.net/p/docutils/code/8572
Author: milde
Date: 2020-10-28 11:51:24 +0000 (Wed, 28 Oct 2020)
Log Message:
-----------
Fix bug #408 Incorrect assert in latex writer for multiple citation references.
Thanks to Erik Hansen for the report.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/docutils/writers/latex2e/__init__.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2020-10-28 08:46:19 UTC (rev 8571)
+++ trunk/docutils/HISTORY.txt 2020-10-28 11:51:24 UTC (rev 8572)
@@ -112,6 +112,9 @@
- Apply patch #173 "Make *TeX writers convert nonstandard table
classes to DUclass environments" by John Thorvald Wodder II.
+ - Fix bug #408 "Incorrect assert in latex writer
+ for multiple citation references".
+
* docutils/writers/manpage.py
- Fix #394 fix missing new line after rubric.
Modified: trunk/docutils/docutils/writers/latex2e/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/latex2e/__init__.py 2020-10-28 08:46:19 UTC (rev 8571)
+++ trunk/docutils/docutils/writers/latex2e/__init__.py 2020-10-28 11:51:24 UTC (rev 8572)
@@ -1718,9 +1718,9 @@
self.out.append(r'\cite{')
self.inside_citation_reference_label = 1
else:
- assert self.body[-1] in (' ', '\n'),\
+ assert self.out[-1] in (' ', '\n'),\
'unexpected non-whitespace while in reference label'
- del self.body[-1]
+ del self.out[-1]
else:
href = ''
if 'refid' in node:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|