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

use as_xml_attr() in wb_styles functions. closes #557 #558

Merged
merged 7 commits into from
Mar 13, 2023
Merged

Conversation

JanMarvin
Copy link
Owner

@JanMarvin JanMarvin commented Mar 12, 2023

Needs some real world testing and might be needed in more cases

  • Update NEWS
  • Add tests

This brings behavior changes: empty elements will be treated as missing, they wont be written with xml_node_create() and are removed from xml strings with xml_mod_attr(). Need to check if this is desired or if there are cases where we do not want this.

In wb_set_selected() we drop additional arguments because they default to NULL. This becomes "" with as_xml_attr(NULL) and will be treated as xml node removal in xml_mod_attr(). Previously argument NULL would simply be ignored in xml_mod_attr() and we probably should think about cases where we pass NULL arguments to xml_mod_attr()

@JanMarvin JanMarvin linked an issue Mar 12, 2023 that may be closed by this pull request
@JanMarvin JanMarvin merged commit d3c8c4c into main Mar 13, 2023
@JanMarvin JanMarvin deleted the expected_args branch March 13, 2023 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Styles functions to accept logical and numeric
1 participant