diff options
author | Igor Kalnitsky <igor@kalnitsky.org> | 2012-02-07 21:29:58 +0200 |
---|---|---|
committer | Igor Kalnitsky <igor@kalnitsky.org> | 2012-02-07 21:29:58 +0200 |
commit | 3d1b3982a4b4fb5dc8ad5eba70b2416fb980b8ec (patch) | |
tree | f086edf649eceda1602c73e3559b786585287407 /pygments/formatters/latex.py | |
parent | 62213ae784abde261ec76d59d3bbfc2f0967dc28 (diff) | |
parent | b42b337d32c87768594934d01e0f40b4c83a435f (diff) | |
download | pygments-3d1b3982a4b4fb5dc8ad5eba70b2416fb980b8ec.tar.gz |
Merge with birkenfeld/pygments-main
Diffstat (limited to 'pygments/formatters/latex.py')
-rw-r--r-- | pygments/formatters/latex.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pygments/formatters/latex.py b/pygments/formatters/latex.py index e109ebdd..3406548a 100644 --- a/pygments/formatters/latex.py +++ b/pygments/formatters/latex.py @@ -5,7 +5,7 @@ Formatter for LaTeX fancyvrb output. - :copyright: Copyright 2006-2011 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ @@ -286,7 +286,8 @@ class LatexFormatter(Formatter): cp = self.commandprefix styles = [] for name, definition in self.cmd2def.iteritems(): - styles.append(r'\expandafter\def\csname %s@tok@%s\endcsname{%s}' % (cp, name, definition)) + styles.append(r'\expandafter\def\csname %s@tok@%s\endcsname{%s}' % + (cp, name, definition)) return STYLE_TEMPLATE % {'cp': self.commandprefix, 'styles': '\n'.join(styles)} |