diff options
author | Luke S. <luke@motimail.com> | 2008-01-08 18:02:19 +0000 |
---|---|---|
committer | Luke S. <luke@motimail.com> | 2008-01-08 18:02:19 +0000 |
commit | faab5ff19c3059670b6cb73b64c305666d0d1585 (patch) | |
tree | b8d1ce7ace08f4f67dbab91071acc9ed0e7758c4 /python/swordutils/osis | |
parent | c1d505e932f753c67fe81a194adb9225c870c1a0 (diff) | |
download | sword-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-x | python/swordutils/osis/genbookOsis2Commentary.py | 5 |
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): |