Skip to content

Commit e7492ce

Browse files
committed
[format] Fix presentation of whitespace; use \caret
1 parent 7003252 commit e7492ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/utilities.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14907,7 +14907,7 @@
1490714907
string s1 = format("{:6}", 'x'); // value of \tcode{s1} is \tcode{"x\ \ \ \ \ "}
1490814908
string s2 = format("{:*<6}", 'x'); // value of \tcode{s2} is \tcode{"x*****"}
1490914909
string s3 = format("{:*>6}", 'x'); // value of \tcode{s3} is \tcode{"*****x"}
14910-
string s4 = format("{:*^6}", 'x'); // value of \tcode{s4} is \tcode{"**x***"}
14910+
string s4 = format("{:*@\caret{}@6}", 'x'); // value of \tcode{s4} is \tcode{"**x***"}
1491114911
string s5 = format("{:6d}", c); // value of \tcode{s5} is \tcode{"\ \ \ 120"}
1491214912
string s6 = format("{:6}", true); // value of \tcode{s6} is \tcode{"true\ \ "}
1491314913
string s7 = format("{:*<6.3}", "123456"); // value of \tcode{s7} is \tcode{"123***"}
@@ -15052,7 +15052,7 @@
1505215052
string s1 = format("{:+06d}", c); // value of \tcode{s1} is \tcode{"+00120"}
1505315053
string s2 = format("{:#06x}", 0xa); // value of \tcode{s2} is \tcode{"0x000a"}
1505415054
string s3 = format("{:<06}", -42); // value of \tcode{s3} is \tcode{"-42\ \ \ "} (\tcode{0} has no effect)
15055-
string s4 = format("{:06}", inf); // value of \tcode{s4} is \tcode{" inf"} (\tcode{0} has no effect)
15055+
string s4 = format("{:06}", inf); // value of \tcode{s4} is \tcode{"\ \ \ inf"} (\tcode{0} has no effect)
1505615056
\end{codeblock}
1505715057
\end{example}
1505815058

@@ -16136,7 +16136,7 @@
1613616136
%% FIXME: their Unicode characters are not available in our font (Latin Modern).
1613716137
\begin{example}
1613816138
\begin{codeblock}
16139-
string s0 = format("[{}]", "h\tllo"); // \tcode{s0} has value: \tcode{[h llo]}
16139+
string s0 = format("[{}]", "h\tllo"); // \tcode{s0} has value: \tcode{[h\ \ \ \ llo]}
1614016140
string s1 = format("[{:?}]", "h\tllo"); // \tcode{s1} has value: \tcode{["h\textbackslash tllo"]}
1614116141
string s3 = format("[{:?}, {:?}]", '\'', '"'); // \tcode{s3} has value: \tcode{['\textbackslash '', '"']}
1614216142

0 commit comments

Comments
 (0)