From 6b76d3371289b69a631fb86187792d1e24f4c18d Mon Sep 17 00:00:00 2001 From: funderburkjim Date: Tue, 7 May 2024 13:58:33 -0400 Subject: [PATCH] BOP: https://github.com/sanskrit-lexicon/BOP/issues/6 --- v02/makotemplates/pywork/make_xml.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/v02/makotemplates/pywork/make_xml.py b/v02/makotemplates/pywork/make_xml.py index eacede4..001f860 100644 --- a/v02/makotemplates/pywork/make_xml.py +++ b/v02/makotemplates/pywork/make_xml.py @@ -998,7 +998,9 @@ def construct_xmlstring(datalines,hwrec): elif x.startswith(('','
')): pass else: - x = '
' + x + #x = '
' + x # 05-06-2024 + x = '
' + x # 05-06-2024 + pass datalines1.append(x) datalines = datalines1 %endif @@ -1055,7 +1057,8 @@ def construct_xmlstring(datalines,hwrec): %endif %if dictlo == 'bop': # bop closing divs is awkward in presence of X - bodylines = body_bop(bodylines) + # bodylines = body_bop(bodylines) # 05-06-2024 + pass # 05-06-2024 %endif body0 = ' '.join(bodylines) dbgout(dbg,"chk4: %s" % body0) @@ -1080,7 +1083,8 @@ def construct_xmlstring(datalines,hwrec): data = re.sub(r' ','',data) %endif #5. Close the
elements -%if dictlo not in ['inm','skd','bop']: +#%if dictlo not in ['inm','skd','bop']: +%if dictlo not in ['inm','skd']: # 05-06-2024 data = close_divs(data) %endif return data