From 992ecd1a6b857346daed3e008b2498a14b161748 Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Mon, 19 Dec 2022 12:45:28 +0100 Subject: [PATCH] Indev for quotes --- src/var/lib/tyto/program/wip.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/var/lib/tyto/program/wip.py b/src/var/lib/tyto/program/wip.py index 558e86a..438f073 100644 --- a/src/var/lib/tyto/program/wip.py +++ b/src/var/lib/tyto/program/wip.py @@ -301,6 +301,7 @@ def wip_quotes() : # Read the quote. Get parameters author = date = lang = book = link = quote_html = '' + cite = '' for qline in quote: if qline.startswith(tyto.words_tags[11][0]): @@ -332,19 +333,23 @@ def wip_quotes() : else: quote_html = qline + if link: + cite = ' cite="%s"'%(link) + if lang: lang = ' lang="%s"'%lang + if author: - quote_html = '
' + \ - '
\n'%( - set_css, lang + quote_html = '
\n' + \ + '
\n'%( + set_css, lang, cite ) + \ '%s\n'%quote_html + \ '
\n' + \ '
' else: - quote_html = '
\n'%( - set_css, lang + quote_html = '
\n'%( + set_css, lang, cite ) + \ '%s\n'%quote_html + \ '
'