Skip to content

Commit bb8e4fa

Browse files
author
smeyer
committed
test multi-line Rd \Sexpr (to be fixed)
git-svn-id: https://svn.r-project.org/R/trunk@88492 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent ab6d7d4 commit bb8e4fa

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

tests/testit.Rd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ foo(\var{x}, \var{y}, ...)
6767
6868
Georgi Boshnakov's example of generated paragraphs:
6969
\Sexpr[results=rd]{paste(letters[1:3], collapse="\n\n")}
70+
71+
\Sexpr[results=verbatim]{"a
72+
b\n c"}
7073
}
7174
\value{
7275
[NULL]\cr\cr\dots

tests/testit.html.save

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ a
109109
</p>
110110
<p>c
111111
</p>
112+
<p><code style="white-space: pre;">&#8288;
113+
[1] "a\n\n b\n c"
114+
&#8288;</code>
115+
</p>
112116

113117

114118
<h3><code style="white-space: pre;">&#8288;\tabular&#8288;</code></h3>

tests/testit.tex.save

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ a
7979
b
8080

8181
c
82+
83+
\AsIs{\texttt{
84+
[1] "a\bsl{}n\bsl{}n b\bsl{}n c"
85+
}}
8286
\end{Section}
8387
%
8488
\begin{Section}{\AsIs{\texttt{\bsl{}tabular}}}

tests/testit.txt.save

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ _V_a_l_u_e:
6868

6969
c
7070

71+
[1] "a\n\n b\n c"
72+
7173
\_t_a_b_u_l_a_r:
7274

7375
1 linked text in \tabular <https://example.org/a&b#c>

0 commit comments

Comments
 (0)