diff options
Diffstat (limited to 'pygments')
-rw-r--r-- | pygments/formatters/rtf.py | 6 | ||||
-rw-r--r-- | pygments/lexers/other.py | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/pygments/formatters/rtf.py b/pygments/formatters/rtf.py index 70c12e66..b7030857 100644 --- a/pygments/formatters/rtf.py +++ b/pygments/formatters/rtf.py @@ -30,8 +30,6 @@ class RtfFormatter(Formatter): specification claims that ``\fmodern`` are "Fixed-pitch serif and sans serif fonts". Hope every RTF implementation thinks the same about modern... - - """ Formatter.__init__(self, **options) self.fontface = options.get('fontface') or '' @@ -53,7 +51,7 @@ class RtfFormatter(Formatter): if isinstance(text, str): for c in xrange(128, 256): text = text.replace(chr(c), '\\\'%x' % c) - + # unicode strings elif isinstance(text, unicode): buf = [] @@ -74,7 +72,7 @@ class RtfFormatter(Formatter): outfile.write(r'{\rtf1\ansi\deff0' r'{\fonttbl{\f0\fmodern\fprq1\fcharset0%s;}}{\colortbl;' % (self.fontface and ' ' + self._escape(self.fontface) or '')) - + # convert colors and save them in a mapping to access them later. color_mapping = {} offset = 1 diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py index 0c54327c..94d3c3b6 100644 --- a/pygments/lexers/other.py +++ b/pygments/lexers/other.py @@ -5,7 +5,7 @@ Lexers for other languages: SQL, BrainFuck. - :copyright: 2006 by Georg Brandl, Tim Hatch <tim@timhatch.com>. + :copyright: 2006 by Georg Brandl, Tim Hatch <tim@timhatch.com>. :license: BSD, see LICENSE for more details. """ @@ -202,4 +202,3 @@ class BashLexer(RegexLexer): def analyse_text(text): return shebang_matches(text, r'(ba|z|)sh') - |