~earboxer/usfm2gmi

2ac94408df2d2124f1012813bcf37b219006f03d — Zach DeCook 2 months ago e283c7c
usx2gmi: fix parsing text which follows a node
1 files changed, 8 insertions(+), 2 deletions(-)

M usx2gmi.py
M usx2gmi.py => usx2gmi.py +8 -2
@@ 25,9 25,15 @@ def convertBlock(thing):

def convertInline(thing):
    # TODO: Implement this.
    out = ''
    if thing.text:
        return thing.text.replace("\n"," ").strip()
    return ''
        out = thing.text.replace("\n"," ").strip()
    for t in thing:
        out += convertInline(t)
        if t.tail:
          out += t.tail.replace("\n"," ")

    return out

if __name__ == '__main__':
    main(sys.argv)