Skip to content
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

Remove <p></p> around the IDs of preserved chunks #685

Merged
merged 2 commits into from
Apr 28, 2016
Merged

Remove <p></p> around the IDs of preserved chunks #685

merged 2 commits into from
Apr 28, 2016

Conversation

@jjallaire
Copy link
Member

@jmcphers Could you review this?

@jmcphers
Copy link
Member

Looks good.

@jmcphers jmcphers merged commit 498ae2e into rstudio:master Apr 28, 2016
@yihui yihui deleted the remove-preserved-p branch April 28, 2016 04:19
# need to remove these empty tags, otherwise we may have invalid HTML like
# <p><div>...</div></p>
for (i in names(preserved_chunks)) {
output_str <- gsub(paste0("<p>", i, "</p>"), i, output_str, fixed = TRUE)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that the call to gsub in restorePreservedChunks includes useBytes = TRUE. Do we need to do that as well here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you have done it. Usually this is only relevant when the system locale is C and there are multibyte characters to be substituted. It is not harmful to use useBytes = TRUE anyway.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants