Indev for quotes
This commit is contained in:
parent
7dc124d688
commit
992ecd1a6b
|
@ -301,6 +301,7 @@ def wip_quotes() :
|
||||||
|
|
||||||
# Read the quote. Get parameters
|
# Read the quote. Get parameters
|
||||||
author = date = lang = book = link = quote_html = ''
|
author = date = lang = book = link = quote_html = ''
|
||||||
|
cite = ''
|
||||||
|
|
||||||
for qline in quote:
|
for qline in quote:
|
||||||
if qline.startswith(tyto.words_tags[11][0]):
|
if qline.startswith(tyto.words_tags[11][0]):
|
||||||
|
@ -332,19 +333,23 @@ def wip_quotes() :
|
||||||
else: quote_html = qline
|
else: quote_html = qline
|
||||||
|
|
||||||
|
|
||||||
|
if link:
|
||||||
|
cite = ' cite="%s"'%(link)
|
||||||
|
|
||||||
if lang:
|
if lang:
|
||||||
lang = ' lang="%s"'%lang
|
lang = ' lang="%s"'%lang
|
||||||
|
|
||||||
if author:
|
if author:
|
||||||
quote_html = '<figure>' + \
|
quote_html = '<figure>\n' + \
|
||||||
'<blockquote class="%s"%s>\n'%(
|
'<blockquote class="%s"%s%s>\n'%(
|
||||||
set_css, lang
|
set_css, lang, cite
|
||||||
) + \
|
) + \
|
||||||
'%s\n'%quote_html + \
|
'%s\n'%quote_html + \
|
||||||
'</blockquote>\n' + \
|
'</blockquote>\n' + \
|
||||||
'</figure>'
|
'</figure>'
|
||||||
else:
|
else:
|
||||||
quote_html = '<blockquote class="%s"%s>\n'%(
|
quote_html = '<blockquote class="%s"%s%s>\n'%(
|
||||||
set_css, lang
|
set_css, lang, cite
|
||||||
) + \
|
) + \
|
||||||
'%s\n'%quote_html + \
|
'%s\n'%quote_html + \
|
||||||
'</blockquote>'
|
'</blockquote>'
|
||||||
|
|
Loading…
Reference in New Issue