[sword-svn] r409 - trunk/modules/python
chrislit at crosswire.org
chrislit at crosswire.org
Fri Jan 4 06:01:07 MST 2013
Author: chrislit
Date: 2013-01-04 06:01:07 -0700 (Fri, 04 Jan 2013)
New Revision: 409
Modified:
trunk/modules/python/usfm2osis.py
Log:
small correction to correctly process \toc3 (parallel to processing of \toc1 & \toc2)
Modified: trunk/modules/python/usfm2osis.py
===================================================================
--- trunk/modules/python/usfm2osis.py 2012-12-31 01:18:00 UTC (rev 408)
+++ trunk/modules/python/usfm2osis.py 2013-01-04 13:01:07 UTC (rev 409)
@@ -454,7 +454,7 @@
osis = re.sub(r'\\toc2\b\s+(.+)\s*'+'\n', r'<milestone type="x-usfm-toc2" n="\1"/>'+'\n', osis)
# \toc3_text...
- osis = re.sub(r'\\toc3\b\s+(.+)\s*'+'\n', lambda m: r'<milestone type="x-usfm-toc3" n="\1"/>'+'\n', osis)
+ osis = re.sub(r'\\toc3\b\s+(.+)\s*'+'\n', r'<milestone type="x-usfm-toc3" n="\1"/>'+'\n', osis)
return osis
More information about the sword-cvs
mailing list