diff options
author | gbrandl <devnull@localhost> | 2007-02-14 18:28:29 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2007-02-14 18:28:29 +0100 |
commit | 74d67f73e81663e45609d99751353b690a4ac312 (patch) | |
tree | 9036deee060f94fc1113da32955e01a91b7c1666 /pygments/formatters/html.py | |
parent | af020e969dfdbb6833887e0a088e245e5032f26a (diff) | |
download | pygments-74d67f73e81663e45609d99751353b690a4ac312.tar.gz |
[svn] Make check.
Diffstat (limited to 'pygments/formatters/html.py')
-rw-r--r-- | pygments/formatters/html.py | 8 |
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 |