summaryrefslogtreecommitdiff
path: root/pygments/formatters/html.py
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2007-02-14 18:28:29 +0100
committergbrandl <devnull@localhost>2007-02-14 18:28:29 +0100
commit74d67f73e81663e45609d99751353b690a4ac312 (patch)
tree9036deee060f94fc1113da32955e01a91b7c1666 /pygments/formatters/html.py
parentaf020e969dfdbb6833887e0a088e245e5032f26a (diff)
downloadpygments-74d67f73e81663e45609d99751353b690a4ac312.tar.gz
[svn] Make check.
Diffstat (limited to 'pygments/formatters/html.py')
-rw-r--r--pygments/formatters/html.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py
index f3257f03..528c981b 100644
--- a/pygments/formatters/html.py
+++ b/pygments/formatters/html.py
@@ -212,7 +212,7 @@ class HtmlFormatter(Formatter):
**Subclassing the HTML formatter**
- *New in Pygments 0.7.*
+ *New in Pygments 0.7.*
The HTML formatter is now built in a way that allows easy subclassing, thus
customizing the output HTML code. The `format()` method calls
@@ -361,7 +361,7 @@ class HtmlFormatter(Formatter):
print >>sys.stderr, 'Note: Cannot determine output file name, ' \
'using current directory as base for the CSS file name'
cssfilename = self.cssfile
- # write CSS file
+ # write CSS file
try:
cf = open(cssfilename, "w")
cf.write(CSSFILE_TEMPLATE %
@@ -392,7 +392,7 @@ class HtmlFormatter(Formatter):
if t:
lncount += 1
dummyoutfile.write(line)
-
+
fl = self.linenostart
mw = len(str(lncount + fl - 1))
sp = self.linenospecial
@@ -480,7 +480,7 @@ class HtmlFormatter(Formatter):
line = cspan + parts[-1]
lspan = cspan
# else we neither have to open a new span nor set lspan
-
+
if line:
yield 1, line + (lspan and '</span>') + lsep