Show More
@@ -56,7 +56,7 b' class Highlight2Html(NbConvertBase):' | |||
|
56 | 56 | if not language: |
|
57 | 57 | language=self.default_language |
|
58 | 58 | |
|
59 | return _pygments_highlight(source, HtmlFormatter(), language, metadata) | |
|
59 | return _pygments_highlight(source if len(source) > 0 else ' ', HtmlFormatter(), language, metadata) | |
|
60 | 60 | |
|
61 | 61 | |
|
62 | 62 | class Highlight2Latex(NbConvertBase): |
General Comments 0
You need to be logged in to leave comments.
Login now