[sword-svn] r416 - trunk/modules/python

chrislit at crosswire.org chrislit at crosswire.org
Tue May 21 21:00:56 MST 2013


Author: chrislit
Date: 2013-05-21 21:00:56 -0700 (Tue, 21 May 2013)
New Revision: 416

Modified:
   trunk/modules/python/usfm2osis.py
Log:
corrected a help text typo
fixed handling of \\periphs (MODTOOLS-40)


Modified: trunk/modules/python/usfm2osis.py
===================================================================
--- trunk/modules/python/usfm2osis.py	2013-05-11 16:47:52 UTC (rev 415)
+++ trunk/modules/python/usfm2osis.py	2013-05-22 04:00:56 UTC (rev 416)
@@ -1126,7 +1126,7 @@
             matchObject -- a regex match object containing the peripheral type and contents
 
             """
-            periphType,contents = matchObject
+            periphType,contents = matchObject.groups()[0:2]
             periph = '<div type="'
             if periphType in peripherals:
                 periph += peripherals[periphType]
@@ -1404,7 +1404,7 @@
     print('')
     print('Usage: usfm2osis.py <osisWork> [OPTION] ...  <USFM filename|wildcard> ...')
     print('')
-    print('  -d               debug mode (single-threaded, verbose output')
+    print('  -d               debug mode (single-threaded, verbose output)')
     print('  -e ENCODING      input encoding override (default is to read the USFM file\'s')
     print('                     \\ide value or assume UTF-8 encoding in its absence)')
     print('  -h, --help       print this usage information')




More information about the sword-cvs mailing list