Skip to content
Snippets Groups Projects
Commit 896203df authored by Roang's avatar Roang
Browse files

Fix wiki diff view with no line numbers

Fixes #626
parent 0f299200
Branches
Tags
No related merge requests found
...@@ -85,7 +85,7 @@ class StaticPageDiff(HtmlDiff): ...@@ -85,7 +85,7 @@ class StaticPageDiff(HtmlDiff):
try: try:
linenum = f'{linenum:d}' linenum = f'{linenum:d}'
change_id = f' id="{self._prefix[side]}{linenum}"' change_id = f' id="{self._prefix[side]}{linenum}"'
except TypeError: except ValueError:
# handle blank lines where linenum is '>' or '' # handle blank lines where linenum is '>' or ''
change_id = '' change_id = ''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment