Skip to content

Commit abfc315

Browse files
authored
Tidy up whitespace (#69)
1 parent 7531757 commit abfc315

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

sphinxext/opengraph/__init__.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
def 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

3737
def 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

0 commit comments

Comments
 (0)