html metadata indentation

merge-requests/30/head
Bob Mottram 2021-11-07 10:54:06 +00:00
parent 1fffb62523
commit d7cd151f04
1 changed files with 17 additions and 15 deletions

View File

@ -114,7 +114,8 @@ def _htmlPostMetadataOpenGraph(domain: str, postJsonObject: {}) -> str:
metadata += \
" <meta content='" + description + "' name='description'>\n"
metadata += \
"<meta content='" + description + "' name='og:description'>\n"
" <meta content='" + description + \
"' name='og:description'>\n"
return metadata
# metadata for attachment
@ -140,7 +141,8 @@ def _htmlPostMetadataOpenGraph(domain: str, postJsonObject: {}) -> str:
metadata += \
" <meta content='" + description + "' name='description'>\n"
metadata += \
"<meta content='" + description + "' name='og:description'>\n"
" <meta content='" + description + \
"' name='og:description'>\n"
metadata += \
" <meta content=\"" + attachJson['url'] + \
"\" property=\"og:image\" />\n"