[Checkins] SVN: manuel/trunk/ - fix a bug that caused Manuel to choke on empty documents (patch
Benji York
benji at zope.com
Fri Jan 29 08:47:47 EST 2010
Log message for revision 108629:
- fix a bug that caused Manuel to choke on empty documents (patch
submitted by Bj?\195?\182rn Tillenius)
- add a pointer to Manuel's Subversion repo on the PyPI page
Changed:
U manuel/trunk/CHANGES.txt
U manuel/trunk/README.txt
U manuel/trunk/src/manuel/__init__.py
U manuel/trunk/src/manuel/bugs.txt
-=-
Modified: manuel/trunk/CHANGES.txt
===================================================================
--- manuel/trunk/CHANGES.txt 2010-01-29 12:05:26 UTC (rev 108628)
+++ manuel/trunk/CHANGES.txt 2010-01-29 13:47:47 UTC (rev 108629)
@@ -1,6 +1,14 @@
CHANGES
=======
+1.0.5 (unreleased)
+------------------
+
+- fix a bug that caused Manuel to choke on empty documents (patch submitted by
+ Björn Tillenius)
+- add a pointer to Manuel's Subversion repo on the PyPI page
+
+
1.0.4 (2010-01-06)
------------------
Modified: manuel/trunk/README.txt
===================================================================
--- manuel/trunk/README.txt 2010-01-29 12:05:26 UTC (rev 108628)
+++ manuel/trunk/README.txt 2010-01-29 13:47:47 UTC (rev 108629)
@@ -1,2 +1,5 @@
Documentation, a full list of included plug-ins, and examples are available at
http://packages.python.org/manuel/.
+
+Source code is available from from svn://svn.zope.org/repos/main/manuel/trunk
+and can be viewed at http://svn.zope.org/manuel/.
Modified: manuel/trunk/src/manuel/__init__.py
===================================================================
--- manuel/trunk/src/manuel/__init__.py 2010-01-29 12:05:26 UTC (rev 108628)
+++ manuel/trunk/src/manuel/__init__.py 2010-01-29 13:47:47 UTC (rev 108629)
@@ -42,7 +42,7 @@
def newlineify(s):
- if s[-1] != '\n':
+ if s == '' or s[-1] != '\n':
s += '\n'
return s
Modified: manuel/trunk/src/manuel/bugs.txt
===================================================================
--- manuel/trunk/src/manuel/bugs.txt 2010-01-29 12:05:26 UTC (rev 108628)
+++ manuel/trunk/src/manuel/bugs.txt 2010-01-29 13:47:47 UTC (rev 108629)
@@ -112,3 +112,14 @@
import manuel.codeblock
m = manuel.codeblock.Manuel()
manuel.Document(source).parse_with(m)
+
+
+Empty documents
+---------------
+
+While empty documents aren't useful, they are still documents containing
+no tests, and shouldn't break the test suite.
+
+ >>> document = manuel.Document('')
+ >>> document.source
+ '\n'
More information about the checkins
mailing list