summaryrefslogtreecommitdiff
path: root/pygments/formatters/latex.py
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2014-05-16 17:49:49 -0700
committerTim Hatch <tim@timhatch.com>2014-05-16 17:49:49 -0700
commit97422c5ed7200eeb588cf07f3e63cd1a80016f15 (patch)
treed34ff1aea3c8641eea785f0cb430bfa4a2630fdd /pygments/formatters/latex.py
parentc5af6ba52c15caee0bce29fba439c8495feea1a7 (diff)
parent234df186957e0b4419d4a587daaea97dee27d484 (diff)
downloadpygments-97422c5ed7200eeb588cf07f3e63cd1a80016f15.tar.gz
Merged in dietmarw/pygments-main (pull request #348)
Modelica-lexer: Add "end" to keyword list again
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 413cca63..352684b0 100644
--- a/pygments/formatters/latex.py
+++ b/pygments/formatters/latex.py
@@ -375,9 +375,9 @@ class LatexFormatter(Formatter):
if len(sep1) > 0:
b,sep2,text = text.partition(self.right)
if len(sep2) > 0:
- value = value + escape_tex(a, self.commandprefix) + b
+ value += escape_tex(a, self.commandprefix) + b
else:
- value = value + escape_tex(a + sep1 + b, self.commandprefix)
+ value += escape_tex(a + sep1 + b, self.commandprefix)
else:
value = value + escape_tex(a, self.commandprefix)
else: