[Pythonjp-checkins] [python-doc-ja] push by anywa****@gmail***** - fix tools/sphinxext/jpsupport.py on 2011-03-05 14:05 GMT

Zurück zum Archiv-Index

pytho****@googl***** pytho****@googl*****
2011年 3月 5日 (土) 23:06:35 JST


Revision: f6db5db6ba
Author: Akihiro Uchida <uchid****@ike-d*****>
Date: Sat Mar  5 06:04:27 2011
Log: fix tools/sphinxext/jpsupport.py
http://code.google.com/p/python-doc-ja/source/detail?r=f6db5db6ba

Modified:
  /tools/sphinxext/jpsupport.py

=======================================
--- /tools/sphinxext/jpsupport.py	Sat Mar  5 01:24:08 2011
+++ /tools/sphinxext/jpsupport.py	Sat Mar  5 06:04:27 2011
@@ -5,7 +5,7 @@
      for node in doctree.traverse(Text):
          if isinstance(node.parent, paragraph):
              lines = node.astext().splitlines()
-            newlines = [lines[0]]
+            newlines = [lines[0] if lines else '']
              for i in xrange(1, len(lines)):
                  line = lines[i]
                  prev = lines[i-1]




Pythonjp-checkins メーリングリストの案内
Zurück zum Archiv-Index