From 5efacd000c0b2b19db9af6d3febb2369e271e030 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Thu, 25 Feb 2021 20:14:18 -0500 Subject: titles: also convert remaining text --- usfm2gmi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usfm2gmi.py') diff --git a/usfm2gmi.py b/usfm2gmi.py index 516e72c..2f0f376 100755 --- a/usfm2gmi.py +++ b/usfm2gmi.py @@ -24,12 +24,12 @@ def convert(line): if len(split) == 0: return out elif split[0] in ['\\mt1','\\mt','\\ms','\\h']: - return '\n# ' + ' '.join(split[1:]) + return '\n# ' + convert(' '.join(split[1:])) # TODO: parse as word for title tags in title line elif split[0] in ['\\mt2','\\s']: - return '\n## ' + ' '.join(split[1:]) + return '\n## ' + convert(' '.join(split[1:])) elif split[0] in ['\\mt3','\\d']: - return '\n### ' + ' '.join(split[1:]) + return '\n### ' + convert(' '.join(split[1:])) elif split[0] == '\\b': return '\n' elif split[0] == '\\rem': -- cgit 1.4.1