[python-xml2rfc] add python-xml2rfc-2.4.2-paginated.patch

Paul Wouters pwouters at fedoraproject.org
Mon Sep 23 17:34:38 UTC 2013


commit 6ab47f22b29aeae90acacf1d50a2499ddabf13a9
Author: Paul Wouters <pwouters at redhat.com>
Date:   Mon Sep 23 13:34:19 2013 -0400

    add python-xml2rfc-2.4.2-paginated.patch

 python-xml2rfc-2.4.2-paginated.patch |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/python-xml2rfc-2.4.2-paginated.patch b/python-xml2rfc-2.4.2-paginated.patch
new file mode 100644
index 0000000..b6471b5
--- /dev/null
+++ b/python-xml2rfc-2.4.2-paginated.patch
@@ -0,0 +1,12 @@
+diff -Naur xml2rfc-2.4.2-orig/xml2rfc/writers/paginated_txt.py xml2rfc-2.4.2/xml2rfc/writers/paginated_txt.py
+--- xml2rfc-2.4.2-orig/xml2rfc/writers/paginated_txt.py	2013-06-01 15:03:21.000000000 -0400
++++ xml2rfc-2.4.2/xml2rfc/writers/paginated_txt.py	2013-08-31 21:29:08.703400961 -0400
+@@ -161,7 +161,7 @@
+     def emit(self, text):
+         """Write text to the output buffer if it's not just a blank
+            line at the top of the page"""
+-        if self.page_length == 1 and text.strip() == '':
++        if self.page_length == 1 and not isinstance(text, list) and text.strip() == '':
+             return 
+         if isinstance(text, basestring):
+             self.output.append(text)


More information about the scm-commits mailing list