Displaying 1 result from an estimated 1 matches for "getsrcbyte".
2023 Feb 05
1
R2HTML doesn't split paragraphs originating from \Sexpr[results=rd]
...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(,"Rd_tag")
# [1] "TEXT"
getSrcref(Rd[[3]][[2]][[9]][[2]])
# \Sexpr[stage=render...