Assorted improvements following up #6658

This commit is contained in:
Bruno Oliveira
2020-02-20 18:51:41 -03:00
parent d1b50526fa
commit c91abe48ba
3 changed files with 18 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ class TerminalWriter(BaseTerminalWriter):
self.line(indent + new_line)
def _highlight(self, source):
"""Highlight the given source code according to the "code_highlight" option"""
"""Highlight the given source code if we have markup support"""
if not self.hasmarkup:
return source
try: