Skip to content

Commit 5cd5610

Browse files
committed
[macros] Preserve straight apostrophes in code.
Apostrophes are code and should not be turned into typographic single quotes.
1 parent 2360a59 commit 5cd5610

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/macros.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@
500500
\newcommand{\CodeBlockSetup}{%
501501
\lstset{escapechar=@, aboveskip=\parskip, belowskip=0pt,
502502
midpenalty=500, endpenalty=-50,
503-
emptylinepenalty=-250, semicolonpenalty=0}%
503+
emptylinepenalty=-250, semicolonpenalty=0,upquote=true}%
504504
\renewcommand{\tcode}[1]{\textup{\CodeStylex{##1}}}
505505
\renewcommand{\term}[1]{\textit{##1}}%
506506
\renewcommand{\grammarterm}[1]{\gterm{##1}}%

0 commit comments

Comments
 (0)