Skip to content

Commit 70f8a74

Browse files
Eeliszygoloid
authored andcommitted
Use columns=fullflexible listings option. (#1426)
Fixes over-wide spaces in comments in code blocks in some cases.
1 parent e88d234 commit 70f8a74

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

source/compatibility.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@
517517
enum e { A };
518518
sizeof(A) == sizeof(int) // in C
519519
sizeof(A) == sizeof(e) // in \Cpp
520-
/* @\textit{\textrm{and \tcode{sizeof(int)} is not necessarily equal to \tcode{sizeof(e)}}}@ */
520+
/* and @sizeof(int)@ is not necessarily equal to @sizeof(e)@ */
521521
\end{codeblock}
522522

523523
\rationale
@@ -638,8 +638,8 @@
638638
int x[99];
639639
void f() {
640640
struct x { int a; };
641-
sizeof(x); /* @\textit{\textrm{size of the array in C}}@ */
642-
/* @\textit{\textrm{size of the struct in \Cpp}}@ */
641+
sizeof(x); /* size of the array in C */
642+
/* size of the struct in @\textit{\textrm{\Cpp}}@ */
643643
}
644644
\end{codeblock}
645645
\rationale

source/macros.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@
320320
xleftmargin=1em,
321321
showstringspaces=false,
322322
commentstyle=\itshape\rmfamily,
323-
columns=flexible,
323+
columns=fullflexible,
324324
keepspaces=true,
325325
texcl=true}
326326

source/special.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1834,7 +1834,7 @@
18341834
% ligature), so we fix it up manually.
18351835
\begin{codeblock}
18361836
struct A {
1837-
int i = /* @\textrm{\textit{some integer expression with side effects}}@ */ ;
1837+
int i = /* some integer expression with side effects */ ;
18381838
A(int arg) : i(arg) { }
18391839
// ...
18401840
};

0 commit comments

Comments
 (0)