Skip to content

Fix combining of mo elements so that properties don't become attributes#720

Merged
dpvc merged 1 commit intodevelopfrom
combined-mo-properties
Jun 8, 2021
Merged

Fix combining of mo elements so that properties don't become attributes#720
dpvc merged 1 commit intodevelopfrom
combined-mo-properties

Conversation

@dpvc
Copy link
Copy Markdown
Member

@dpvc dpvc commented Jun 7, 2021

This PR resolves an issue raised by Peter in #703 where a property of one of the nodes becomes an attribute. It turns out this is due to the setProperties() call, which actually sets attributes by default (and properties under certain circumstances). The function is unfortunately named, and perhaps should be adjusted. The fix is just to copy the properties by hand.

@dpvc dpvc added this to the 3.2 milestone Jun 7, 2021
@dpvc dpvc requested a review from zorkow June 7, 2021 15:49
Copy link
Copy Markdown
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

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

lgtm.

@zorkow
Copy link
Copy Markdown
Member

zorkow commented Jun 8, 2021

In general the NodeUtil module needs refactoring. It is a remnant of the reimplementation of the TexParser to have a clean interface for nodes the while the data structures in core where still subject to change.

@dpvc dpvc merged commit 657594c into develop Jun 8, 2021
@dpvc dpvc deleted the combined-mo-properties branch June 8, 2021 19:37
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.

2 participants