Indev for quotes

This commit is contained in:
Cyrille L 2022-12-19 13:01:47 +01:00
parent 458514649b
commit 7f4b35b8fe
1 changed files with 22 additions and 7 deletions

View File

@ -310,26 +310,41 @@ def wip_quotes() :
if quote_params(qline): continue if quote_params(qline): continue
# paragraphs # Paragraph [10] Open
# Construct quote_html # Construct quote_html
if qline.startswith(tyto.words_tags[10][0]): if qline.startswith(tyto.words_tags[10][0]):
par_css = tyto.get_css(qline) par_css = tyto.get_css(qline)
qline_html = '%s'%(tyto.words_tags[10][2]%par_css) if author:
qline_html = ' %s'%(tyto.words_tags[10][2]%par_css)
if quote_html: quote_html = '%s\n%s'%(quote_html,qline_html) else:
else: quote_html = qline_html qline_html = ' %s'%(tyto.words_tags[10][2]%par_css)
if quote_html:
qquote_html = '%s\n%s'%(quote_html, qline_html)
else:
quote_html = '%s'%qline_html
continue continue
# Paragraph Close
if qline.startswith(tyto.words_tags[10][1]): if qline.startswith(tyto.words_tags[10][1]):
qline_html = tyto.words_tags[10][3] qline_html = tyto.words_tags[10][3]
quote_html = '%s\n%s'%(quote_html, qline_html) if author:
quote_html = '%s\n %s'%(quote_html, qline_html)
else:
quote_html = '%s\n %s'%(quote_html, qline_html)
continue continue
# End of quote # End of quote
if qline.startswith(tyto.words_tags[11][1]): if qline.startswith(tyto.words_tags[11][1]):
continue continue
if quote_html: quote_html = '%s\n%s'%(quote_html,qline) # Add other lines
if quote_html:
if author:
quote_html = '%s\n %s'%(quote_html, qline)
else:
quote_html = '%s\n %s'%(quote_html, qline)
else: quote_html = qline else: quote_html = qline