Skip to content

Commit

Permalink
remove debugging output
Browse files Browse the repository at this point in the history
  • Loading branch information
shaedrich authored Jun 6, 2024
1 parent e490856 commit 8f35e48
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/superfences_ponylang/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ def format(source, language, css_class, options, md, classes=None, id_value='',
start, end = lineNum.split('-')
if (i + 1) >= int(start) and (i + 1) <= int(end):
lines.append(line)
_lines[i] = (lineNumbers, line, True)
# _lines[i] = (lineNumbers, line, True)
elif (i + 1) == int(lineNum):
lines.append(line)
_lines[i] = (lineNumbers, line, True)
else:
_lines[i] = (lineNumbers, line, False)
# _lines[i] = (lineNumbers, line, True)
#else:
# _lines[i] = (lineNumbers, line, False)
#source = str(lines)
source = str(_lines)
#source = str(_lines)

if 'dedent_subsections' in attrs and attrs.get('dedent_subsections'):
p = re.compile('^\s+')
Expand All @@ -58,7 +58,7 @@ def format(source, language, css_class, options, md, classes=None, id_value='',
for i, line in enumerate(lines):
lines[i] = line[indent:None]

#source = '\n'.join(lines)
source = '\n'.join(lines)
#source = str(base.Config.user_configs.__dict__) + str(TemplateContext) + str(c) + str(options) + str(attrs) + str(classes) + str(kwargs)
else:
with open(os.getcwd() + "/code-samples/" + snippetPath, 'r') as f:
Expand Down

0 comments on commit 8f35e48

Please sign in to comment.