File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 3131def make_tag (property : str , content : str ) -> str :
3232 # Parse quotation, so they won't break html tags if smart quotes are disabled
3333 content = content .replace ('"' , """ )
34- return f'<meta property="{ property } " content="{ content } " />\n '
34+ return f'<meta property="{ property } " content="{ content } " />'
3535
3636
3737def get_tags (
@@ -158,8 +158,11 @@ def get_tags(
158158 # arbitrary tags and overrides
159159 tags .update ({k : v for k , v in fields .items () if k .startswith ("og:" )})
160160
161- return "\n " + "\n " .join (
162- [make_tag (p , c ) for p , c in tags .items ()] + config ["ogp_custom_meta_tags" ]
161+ return (
162+ "\n " .join (
163+ [make_tag (p , c ) for p , c in tags .items ()] + config ["ogp_custom_meta_tags" ]
164+ )
165+ + "\n "
163166 )
164167
165168
You can’t perform that action at this time.
0 commit comments