Displaying 1 result from an estimated 1 matches for "isblanklinerd".
2023 Feb 05
1
R2HTML doesn't split paragraphs originating from \Sexpr[results=rd]
...gt;
<p>This should be on a separate paragraph
</p>
<p>Sexpr: This should be on a separate paragraph
Sexpr: This should be on a separate paragraph
Sexpr: This should be on a separate paragraph
</p>
addParaBreaks() is prevented from closing the paragraph tag because
tools:::isBlankLineRd() returns FALSE for blank lines produced by a
\Sexpr. This happens because utils:::getSrcByte() not 1 for these blank
lines. That, in turn, is because the source reference for \Sexpr values
is the whole \Sexpr tag:
# blank line from a \Sexpr
Rd[[3]][[2]][[9]][[2]]
# [1] "\n"
# attr(,&quo...