summaryrefslogtreecommitdiffstats
path: root/python/swordutils/osis
diff options
context:
space:
mode:
authorLuke S. <luke@motimail.com>2008-01-08 18:02:19 +0000
committerLuke S. <luke@motimail.com>2008-01-08 18:02:19 +0000
commitfaab5ff19c3059670b6cb73b64c305666d0d1585 (patch)
treeb8d1ce7ace08f4f67dbab91071acc9ed0e7758c4 /python/swordutils/osis
parentc1d505e932f753c67fe81a194adb9225c870c1a0 (diff)
downloadsword-tools-faab5ff19c3059670b6cb73b64c305666d0d1585.tar.gz
Small fix for reversifying osis commentaries
git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@132 07627401-56e2-0310-80f4-f8cd0041bdcd
Diffstat (limited to 'python/swordutils/osis')
-rwxr-xr-xpython/swordutils/osis/genbookOsis2Commentary.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/swordutils/osis/genbookOsis2Commentary.py b/python/swordutils/osis/genbookOsis2Commentary.py
index d3c865a..34e4314 100755
--- a/python/swordutils/osis/genbookOsis2Commentary.py
+++ b/python/swordutils/osis/genbookOsis2Commentary.py
@@ -19,7 +19,10 @@ def isRoot(n):
and n.nodeName == u'osis')
def isVerseDiv(n):
- return n.nodeName == u'div' and n.attributes.has_key(u'osisID')
+ # we must only match things like: "Ps.1.1"
+ # and not: "Ps.1"
+ return n.nodeName == u'div' and n.attributes.has_key(u'osisID') \
+ and len(n.attributes['osisID'].value.split('.')) == 3
class VerseRef(object):
def __init__(self, ref):