Skip to content

UE5 Plugin and Weird Result About node_pcdata->set_value #578

Closed Answered by zeux
ffreality asked this question in Q&A
Discussion options

You must be logged in to vote

I would recommend checking if NodeValue is empty before running this line:

Out_Node->Node.append_child(node_pcdata).set_value(TCHAR_TO_UTF8(*NodeValue));

What happens is that your COMPANIES node has a first child that is pcdata (with empty value). The node formatting code disables automatic indentation in a condition like this because it assumes that the pcdata child will have some custom formatting of its own.

So as long as this line doesn't execute for COMPANIES you should see consistent indentation for all child nodes.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ffreality
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants