diff options
author | Bryan Newbold <bnewbold@archive.org> | 2019-07-31 12:54:11 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2019-07-31 12:54:11 -0700 |
commit | 4b8f912d9ba362de5cd8dd0bb1f00b31103fffcc (patch) | |
tree | fe30032795b4ca7d6dea15d57fac8e147adb9cfc | |
parent | 3eaf3739ab959b48624b61ebe0c2ade761aa9662 (diff) | |
download | sqlite-notebook-master.tar.gz sqlite-notebook-master.zip |
-rwxr-xr-x | sqlite-notebook.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlite-notebook.py b/sqlite-notebook.py index 7f83f61..2bdc21c 100755 --- a/sqlite-notebook.py +++ b/sqlite-notebook.py @@ -12,7 +12,7 @@ class SqliteMarkdownRenderer(mistune.Renderer): self.conn = conn def block_code(self, code, lang): - if lang.strip().lower() == 'sql': + if lang and lang.strip().lower() == 'sql': # remove comment lines core = code.strip() code = '\n'.join( |