1 - added a new bool, hasXML
2 - At line 552 I flip hasXML to true every time it detects that it's going into XML - never turns it off, it starts off and if the line doesn't have XML it never hits
3 - down towards the end of the function around 790 I wrapped the function to ParseText in a check for the line to not be XML with only a line break. Including other whitespace characters will pass this check.
1 - added a new bool, hasXML 2 - At line 552 I flip hasXML to true every time it detects that it's going into XML - never turns it off, it starts off and if the line doesn't have XML it never hits 3 - down towards the end of the function around 790 I wrapped the function to ParseText in a check for the line to not be XML with only a line break. Including other whitespace characters will pass this check.