From 2135da46a90d2d05d8be261593b7afbb0b5e7967 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Mon, 18 Jul 2022 11:07:31 +0900 Subject: [PATCH] Imported Upstream version 2.8.1 --- CHANGES | 6 ++++++ PKG-INFO | 2 +- Pygments.egg-info/PKG-INFO | 2 +- pygments/__init__.py | 2 +- pygments/formatters/latex.py | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index 977c698..47295b4 100644 --- a/CHANGES +++ b/CHANGES @@ -7,6 +7,12 @@ pull request numbers to the requests at . +Version 2.8.1 +------------- +(released March 7, 2021) + +- Fix issue with LaTeX formatter and ``minted`` (#1734, #1735, #1736, #1737) + Version 2.8.0 ------------- (released February 14, 2021) diff --git a/PKG-INFO b/PKG-INFO index 07eb075..cd6ec3e 100644 --- a/PKG-INFO +++ b/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: Pygments -Version: 2.8.0 +Version: 2.8.1 Summary: Pygments is a syntax highlighting package written in Python. Home-page: https://pygments.org/ Author: Georg Brandl diff --git a/Pygments.egg-info/PKG-INFO b/Pygments.egg-info/PKG-INFO index 07eb075..cd6ec3e 100644 --- a/Pygments.egg-info/PKG-INFO +++ b/Pygments.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: Pygments -Version: 2.8.0 +Version: 2.8.1 Summary: Pygments is a syntax highlighting package written in Python. Home-page: https://pygments.org/ Author: Georg Brandl diff --git a/pygments/__init__.py b/pygments/__init__.py index 199ce1b..97efc00 100644 --- a/pygments/__init__.py +++ b/pygments/__init__.py @@ -27,7 +27,7 @@ import sys from io import StringIO, BytesIO -__version__ = '2.8.0' +__version__ = '2.8.1' __docformat__ = 'restructuredtext' __all__ = ['lex', 'format', 'highlight'] diff --git a/pygments/formatters/latex.py b/pygments/formatters/latex.py index 304f70f..e32fceb 100644 --- a/pygments/formatters/latex.py +++ b/pygments/formatters/latex.py @@ -299,7 +299,7 @@ class LatexFormatter(Formatter): cmndef += (r'\def\$$@tc##1{\textcolor[rgb]{%s}{##1}}' % rgbcolor(ndef['color'])) if ndef['border']: - cmndef += (r'\def\$$@bc##1{{\setlength{\fboxsep}{-\fboxrule}' + cmndef += (r'\def\$$@bc##1{{\setlength{\fboxsep}{\string -\fboxrule}' r'\fcolorbox[rgb]{%s}{%s}{\strut ##1}}}' % (rgbcolor(ndef['border']), rgbcolor(ndef['bgcolor']))) -- 2.34.1