aboutsummaryrefslogtreecommitdiffstats
path: root/markdown_extensions/codehilite.py
diff options
context:
space:
mode:
Diffstat (limited to 'markdown_extensions/codehilite.py')
-rw-r--r--markdown_extensions/codehilite.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/markdown_extensions/codehilite.py b/markdown_extensions/codehilite.py
index 73c1a79..890a66b 100644
--- a/markdown_extensions/codehilite.py
+++ b/markdown_extensions/codehilite.py
@@ -80,11 +80,10 @@ class CodeHilite:
except ImportError:
# just escape and pass through
txt = self._escape(self.src)
- '''if num:
+ if self.linenos:
txt = self._number(txt)
else :
- txt = '<div class="codehilite"><pre>%s</pre></div>\n'% txt'''
- txt = self._number(txt)
+ txt = '<div class="codehilite"><pre>%s</pre></div>\n'% txt
return txt
else:
try: