With the following code (written in Python for ease of testing, but 
I'm seeing the same thing in C++):
----------
import Sword
mgr = Sword.SWMgr()
module = mgr.getModule("Luther")
vk = Sword.VerseKey.castTo(module.getKey())
vk.AutoNormalize(0)
vk.setText("Ephesians 1:1")

print repr(module.Error())
print repr(module.RenderText())
-----------
I expect to see:
'\x01'
''

Instead I see:

'\x00'
'<p>VERSE 26.  <b>Let us ...<snipped> '   [Entry for Galatians 5:26, 
which isn't even the last entry in the module]

Any ideas what could be causing this?  It doesn't happen with some 
other modules I've tested.

Thanks,

Luke


-- 
The probability of someone watching you is proportional to the 
stupidity of your action.

Luke Plant || http://lukeplant.me.uk/

_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to