summaryrefslogtreecommitdiff
path: root/pygments/lexers/_postgres_builtins.py
diff options
context:
space:
mode:
authorJean-François B <jfbu@free.fr>2021-02-12 20:18:40 +0100
committerGitHub <noreply@github.com>2021-02-12 20:18:40 +0100
commit432ff8d4d768b9b7eeee904f1ac7a625659f8810 (patch)
tree65aee812f06c8397e81c90e3a87c7ff19b9a4e0f /pygments/lexers/_postgres_builtins.py
parentf57cc9b6bb22b831d1dc8327b08cd7e023d77c1d (diff)
downloadpygments-git-432ff8d4d768b9b7eeee904f1ac7a625659f8810.tar.gz
LaTeX: avoid uneven baselines in case highlighting uses \fcolorbox (#1708)
Without this, the \strut causes the background color to apply to a full baseline height, then the framing done by \fcolorbox augments beyond that the box height and as a result the line where this happens will have extra distance from previous and next lines. Correct that by reducing the apparent box size by exactly the width of the frame (\fboxrule). Also, make the change to \fboxsep local. Reason: if texcomments is True, some arbitrary LaTeX mark-up can be executed in a later part and the setting of \fboxsep could modify output; macro \<cmdprefix>@bc is executed at top level, cf. \<cmdprefix>@do.
Diffstat (limited to 'pygments/lexers/_postgres_builtins.py')
0 files changed, 0 insertions, 0 deletions