wip: HTML time tag added to quotes (when registred) + base64 in utf8

This commit is contained in:
Cyrille L 2022-12-26 14:20:52 +01:00
parent a5601062ff
commit 0378edcdf4
2 changed files with 5 additions and 5 deletions

View File

@ -183,7 +183,7 @@ Pfff, vraiment !
)) ))
]] ]]
# HTML: # HTML
<figure class="CSS_TEST"> <figure class="CSS_TEST">
<blockquote class="CSS_TEST" lang="fr" cite="https://tyto.echolib.re" title="echolib - Reference (2022-12-28)"> <blockquote class="CSS_TEST" lang="fr" cite="https://tyto.echolib.re" title="echolib - Reference (2022-12-28)">
<time datetime="2022-12-28"> <time datetime="2022-12-28">

View File

@ -529,10 +529,10 @@ def check_content(post_bottom):
# Check for _image:NAME from content in header # Check for _image:NAME from content in header
#--------------------------------------------- #---------------------------------------------
for ln, line in enumerate(post_bottom): for ln, line in enumerate(post_bottom):
if line.startswith('_image:'): if line.startswith(content_tags):
image_id = line.rsplit(':', 1)[1].rsplit(' ')[0] tag_id = line.rsplit(':', 1)[1].rsplit(' ')[0]
if not re.search(r'^image:\s|%s'%image_id, article_header): if not re.search(r'^' + tag + '\s|' + tag_id, article_header):
tyto.exiting("10", "image: %s"%image_id, True) tyto.exiting("10", "%s %s"%(tag, tag_id), True)
#===============================================# #===============================================#