Fix bug with pygmentize and just-newline lines

This commit is contained in:
Klaas van Schelven
2024-04-01 22:22:12 +02:00
parent 85b160d7f8
commit 477ec43487
2 changed files with 4 additions and 1 deletions

View File

@@ -49,3 +49,6 @@ class TestIssuesTemplateTags(TestCase):
def test_pygmentize_lines_newline_in_code(self):
_pygmentize_lines(["print('hello world')\n"])
def test_pygmentize_lines_newline_on_otherwise_empty_line(self):
_pygmentize_lines(["\n", "\n", "\n"])