Skip to content
Snippets Groups Projects
Commit 89401a65 authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Minor fixes.

parent f39f0a1f
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ def __main() -> None:
def output(thingy: Any) -> None:
match args.format:
case 'json':
json.dump(result, sys.stdout, indent=args.pretty)
json.dump(thingy, sys.stdout, indent=args.pretty)
print()
case 'python':
if indent := args.pretty:
......
......@@ -22,7 +22,7 @@ def highlight(code: str, language: str) -> str:
'--fragment',
'--line-numbers',
'--anchors',
'--anchors-prefix=line',
'--anchor-prefix=line',
'--class-name=NONE',
'--syntax', language,
'--enclose-pre'],
......
......@@ -6,7 +6,7 @@ try:
from pygments.lexers import get_lexer_by_name
import pygments
available = True
except ModuleNotFoundError:
except ModuleNotFoundError: # pragma: no cover
available = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment