aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2019-07-31 12:54:11 -0700
committerBryan Newbold <bnewbold@archive.org>2019-07-31 12:54:11 -0700
commit4b8f912d9ba362de5cd8dd0bb1f00b31103fffcc (patch)
treefe30032795b4ca7d6dea15d57fac8e147adb9cfc
parent3eaf3739ab959b48624b61ebe0c2ade761aa9662 (diff)
downloadsqlite-notebook-4b8f912d9ba362de5cd8dd0bb1f00b31103fffcc.tar.gz
sqlite-notebook-4b8f912d9ba362de5cd8dd0bb1f00b31103fffcc.zip
allow empty lang code blocksHEADmaster
-rwxr-xr-xsqlite-notebook.py2
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(