summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-08-07 11:49:38 +0200
committerGeorg Brandl <georg@python.org>2007-08-07 11:49:38 +0200
commit10775b9ef3fc0ee3c615af946e1ee6c332f174e0 (patch)
treed033b187ad29ef866db9c7d26d70eb480712d81a /docs
parent71ac3fd2722b94e980779ed8ced9a6b25c97a444 (diff)
downloadpygments-git-10775b9ef3fc0ee3c615af946e1ee6c332f174e0.tar.gz
[svn] Fix #269 -- errors in formatterdevelopment example.
Diffstat (limited to 'docs')
-rw-r--r--docs/src/formatterdevelopment.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/src/formatterdevelopment.txt b/docs/src/formatterdevelopment.txt
index 82208aa0..83a13b6a 100644
--- a/docs/src/formatterdevelopment.txt
+++ b/docs/src/formatterdevelopment.txt
@@ -99,17 +99,17 @@ style this formatter isn't in the standard library ;-)
# a style item is a tuple in the following form:
# colors are readily specified in hex: 'RRGGBB'
if style['color']:
- start += '<font color="#%s">' % color
- end += '</font>'
+ start += '<font color="#%s">' % style['color']
+ end = '</font>' + end
if style['bold']:
start += '<b>'
- end += '</b>'
+ end = '</b>' + end
if style['italic']:
start += '<i>'
- end += '</i>'
+ end = '</i>' + end
if style['underline']:
start += '<u>'
- end += '</u>'
+ end = '</u>' + end
self.styles[token] = (start, end)
def format(self, tokensource, outfile):