We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 511ae6d commit fea9cd3Copy full SHA for fea9cd3
pelican/plugins/linkclass/mdx_linkclass.py
@@ -36,10 +36,7 @@ def add_class(elm, config):
36
"""Utlity function for adding the appropriate class attribute."""
37
try:
38
m = re.match("^https?://", elm.get("href"))
39
- elm.set(
40
- "class",
41
- (m and config["EXTERNAL_CLASS"]) or config["INTERNAL_CLASS"]
42
- )
+ elm.set("class", (m and config["EXTERNAL_CLASS"]) or config["INTERNAL_CLASS"])
43
except AttributeError:
44
pass
45
return elm
0 commit comments