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

[pugi] print consistency and new format flags to indent attributes #279

Merged
merged 5 commits into from
Jul 19, 2022

Conversation

JanMarvin
Copy link
Owner

@JanMarvin JanMarvin commented Jul 17, 2022

Related to #231

> txt <- 'abcd\037'
> openxlsx2:::txt_to_si(txt)
[1] "<si><t>abcd</t></si>"
> 
> openxlsx2:::txt_to_is(txt)
[1] "<is><t>abcd</t></is>"
> openxlsx2:::txt_to_is(txt, skip_control = FALSE)
[1] "<is><t>abcd&#31;</t></is>"
> 
> xml_node_create("bar", txt)
[1] "<bar>abcd\037</bar>"

@JanMarvin JanMarvin linked an issue Jul 17, 2022 that may be closed by this pull request
…ing are also used when exporting. This leaves a little less room for customization, but should protect against simple errors. It's unlikely that someone will import with escapes but want to export without. Also, it is now possible to pass arguments to `read_xml()` from functions embedding it.
@JanMarvin JanMarvin merged commit 695dfe2 into main Jul 19, 2022
@JanMarvin JanMarvin deleted the pugi_prints branch July 19, 2022 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

replace ASCII control characters
1 participant