summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2017-03-12 22:20:56 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2017-03-12 22:20:56 +0100
commit22201057dd7b6a71334eb661ff6df11261a3cd22 (patch)
tree2d539d308e66cacf299e50d24a7bc823d1b16b13
parent886829026a56c87ecedded82ae26b182c969d553 (diff)
Fixed pre tags in HTML formatter.
The ending tag should be </pre>, not <pre>.
-rw-r--r--pastepy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pastepy.py b/pastepy.py
index 77a3311..6af07ef 100644
--- a/pastepy.py
+++ b/pastepy.py
@@ -12,7 +12,7 @@ class CustomHtmlFormatter(HtmlFormatter):
for i, t in source:
yield i, '<span id="codeline-%d">%s</span>' % (line, t)
line += 1
- yield 0, '<pre>'
+ yield 0, '</pre>'
class Paste(object):
def __init__(self):