Skip to content

Commit 8363af6

Browse files
committed
Fix highlight lint issue
1 parent 760e56b commit 8363af6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pymdownx/highlight.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,12 @@ def _format_custom_line(self, m):
186186
# wrap the gutter number in the future with a highlight class.
187187
# The decision to do this has still not be made.
188188

189-
lnum = m.group(4) if not m.group(4).rstrip() else m.group(4)
190-
191189
return (
192190
m.group(1) +
193191
m.group(2) +
194192
'"' +
195193
m.group(3) +
196-
' data-linenos="' + lnum + ' ">' +
194+
' data-linenos="' + m.group(4) + ' ">' +
197195
m.group(5)
198196
)
199197

0 commit comments

Comments
 (0)