-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty lines are not formatted correctly in verbatim text #951
Labels
Milestone
Comments
Merged
I think this bug ultimately comes down to x <- structure(list(
structure("\n", class = c("TEXT", "tag")),
structure("Here is a code section.", class = c("TEXT", "tag")),
structure(
list(
structure("Line 1\n", class = c("VERB", "tag")),
structure("\n", class = c("VERB", "tag")),
structure("Line 2\n", class = c("VERB", "tag")),
structure("\n", class = c("VERB", "tag")),
structure("Line 3\n", class = c("VERB", "tag"))
),
class = c("tag_preformatted", "tag")
),
structure("\n", class = c("TEXT", "tag"))
),
class = c("tag_details", "tag"))
pkgdown:::parse_section(x, "Details")
#> $title
#> [1] "Details"
#>
#> $contents
#> [1] "<p>Here is a code section.</p><pre>Line 1"
#> [2] "Line 2"
#> [3] "Line 3\n</pre>" Created on 2019-04-09 by the reprex package (v0.2.1) I think |
The newline stripping done by |
jayhesselberth
added a commit
that referenced
this issue
Jul 2, 2019
jayhesselberth
added a commit
that referenced
this issue
Jul 2, 2019
jayhesselberth
added a commit
that referenced
this issue
Jul 2, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Empty lines in verbatim / preformatted text that render correctly inside the R documentation
produce an indent of the following line, instead of an empty line.
So this:
renders as this:
Example from another r-lib package: processx
The text was updated successfully, but these errors were encountered: