Skip to content

Commit fea9cd3

Browse files
committed
Reformat code
1 parent 511ae6d commit fea9cd3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pelican/plugins/linkclass/mdx_linkclass.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ def add_class(elm, config):
3636
"""Utlity function for adding the appropriate class attribute."""
3737
try:
3838
m = re.match("^https?://", elm.get("href"))
39-
elm.set(
40-
"class",
41-
(m and config["EXTERNAL_CLASS"]) or config["INTERNAL_CLASS"]
42-
)
39+
elm.set("class", (m and config["EXTERNAL_CLASS"]) or config["INTERNAL_CLASS"])
4340
except AttributeError:
4441
pass
4542
return elm

0 commit comments

Comments
 (0)