Skip to content

Commit a96296c

Browse files
committed
Last whitespaces should not be highlighted.
1 parent 8ab29d6 commit a96296c

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

codehighlighter/python/highlight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ def _highlight_code():
947947
lastval = tok_value
948948
lasttype = tok_type
949949
# emptying buffer
950-
if lastval:
950+
if lastval.strip():
951951
_highlight_code()
952952
self.cleancharstyles(styleprefix)
953953
logger.debug("Terminating code block highlighting.")

codehighlighter2.oxt

2 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)