summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES9
-rw-r--r--pygments/formatters/latex.py4
2 files changed, 10 insertions, 3 deletions
diff --git a/CHANGES b/CHANGES
index 175a1bf1..e35df48e 100644
--- a/CHANGES
+++ b/CHANGES
@@ -3,9 +3,12 @@ Pygments changelog
Issue numbers refer to the tracker at http://dev.pocoo.org/projects/pygments/.
-Version 1.3
------------
-(in development)
+Version 1.2.2
+-------------
+(bugfix release, released Jan 02, 2010)
+
+* Removed a backwards incompatibility in the LaTeX formatter that caused
+ Sphinx to produce invalid commands when writing LaTeX output.
Version 1.2.1
diff --git a/pygments/formatters/latex.py b/pygments/formatters/latex.py
index a9059b14..4715b04e 100644
--- a/pygments/formatters/latex.py
+++ b/pygments/formatters/latex.py
@@ -101,6 +101,10 @@ STYLE_TEMPLATE = r'''
\def\%(cp)sZob{\char`\{}
\def\%(cp)sZcb{\char`\}}
\def\%(cp)sZca{\char`\^}
+%% for compatibility with earlier versions
+\def\%(cp)sZat{@}
+\def\%(cp)sZlb{[}
+\def\%(cp)sZrb{]}
\makeatother
'''