summaryrefslogtreecommitdiff
path: root/pygments/formatters/latex.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/formatters/latex.py')
-rw-r--r--pygments/formatters/latex.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/formatters/latex.py b/pygments/formatters/latex.py
index fee177c5..413cca63 100644
--- a/pygments/formatters/latex.py
+++ b/pygments/formatters/latex.py
@@ -382,7 +382,7 @@ class LatexFormatter(Formatter):
value = value + escape_tex(a, self.commandprefix)
else:
value = escape_tex(value, self.commandprefix)
- elif not (ttype in Token.Escape):
+ elif ttype not in Token.Escape:
value = escape_tex(value, self.commandprefix)
styles = []
while ttype is not Token:
@@ -445,7 +445,7 @@ class LatexEmbeddedLexer(Lexer):
yield i, t, v
else:
if not buf:
- idx = i;
+ idx = i
buf += v
if buf:
for x in self.get_tokens_aux(idx, buf):