summaryrefslogtreecommitdiff
path: root/pygments/formatters/latex.py
diff options
context:
space:
mode:
authorGaurav Jain <gaurav@gauravjain.org>2014-05-17 10:06:29 -0400
committerGaurav Jain <gaurav@gauravjain.org>2014-05-17 10:06:29 -0400
commitb4328f0a0cd095ce34eb4614cfd3267d695ddf8f (patch)
tree6af6ad8b23f89c47746c280f7e2bf8cbefcd4ce6 /pygments/formatters/latex.py
parent16cc059837eb83f96f35caf207c1e0778673f63c (diff)
parent778edd1d5ff974b1d4084af964151d9f87f05efd (diff)
downloadpygments-b4328f0a0cd095ce34eb4614cfd3267d695ddf8f.tar.gz
Merged birkenfeld/pygments-main into default
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: