Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
shaedrich authored Jun 5, 2024
1 parent 06d8926 commit 4a55e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/superfences_ponylang/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def format(source, language, css_class, options, md, classes=None, id_value='',
lineNumbers = [ lineNumbers ]
with open(os.getcwd() + "/code-samples/" + snippetPath, 'r') as f:
for i, line in enumerate(f):
for _, lineNum in enumerate(lineNumbers):
for lineNum in lineNumbers:
if '-' in lineNum:
start, end = lineNum.split('-')
if i >= int(start) and i <= int(end):
Expand Down

0 comments on commit 4a55e86

Please sign in to comment.