]> git.cameronkatri.com Git - mandoc.git/blob - regress/roff/string/escape.in
style message about missing RCS ids; inspired by mdoclint
[mandoc.git] / regress / roff / string / escape.in
1 .TH STRING-ESCAPE 1 "December 3, 2010" OpenBSD
2 .SH NAME
3 string-escape - preventing string interpolation
4 .SH DESCRIPTION
5 .ds right wrong
6 .ds inner *[right]
7 .ds outer \\*[inner]
8 .SS Normal interpolation
9 result: \*[inner]
10 .PP
11 The above line must be "result: *[right]".
12 .SS Intervening character
13 result: \e*[right]
14 .PP
15 The above line must be "result: backslash*[right]",
16 not "result: rong".
17 .SS Escaped backslash
18 result: \\*[right]
19 .PP
20 The above line must be "result: backslash*[right]",
21 not "result: rong".
22 .SS Delayed interpolation
23 result: \*[outer]
24 .PP
25 The above line must be "result: *[right]",
26 not "result: wrong".