Hi, I have an Fb2 document, it's not strict Xml, but anyway I think in this case it should behave in another way:
Take:
<p>text<strong></strong>moretext</p>
Between <strong> and </strong> there is fisically a CRLF that is, in fact, text, and it should trigger the OnCharacters event with #13#10 as text, but it doesn't. I've tried any combination of linebreak and whitespacehandling, in this last property I think resides the bug: if you set whitespacehandling to default, trim, you don't get any CRLF as text, if you set it to preservealways you get it always, but if you set it to preserveintextonly I don't see any difference with trim, and in any case, neither dies it work in the exposed problem.
I mean that it doesn't trigger the oncharacters even when it should, if whitespacehandling is set to preservealways you get it but also you get it at any other CRLF in the file, real text or not.
Thank you very much for this great utility and regards.
Last edit: Anonymous 2016-06-27
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hi, I have an Fb2 document, it's not strict Xml, but anyway I think in this case it should behave in another way:
Take:
Between
<strong>
and</strong>
there is fisically a CRLF that is, in fact, text, and it should trigger the OnCharacters event with #13#10 as text, but it doesn't. I've tried any combination of linebreak and whitespacehandling, in this last property I think resides the bug: if you set whitespacehandling to default, trim, you don't get any CRLF as text, if you set it to preservealways you get it always, but if you set it to preserveintextonly I don't see any difference with trim, and in any case, neither dies it work in the exposed problem.I mean that it doesn't trigger the oncharacters even when it should, if whitespacehandling is set to preservealways you get it but also you get it at any other CRLF in the file, real text or not.
Thank you very much for this great utility and regards.
Last edit: Anonymous 2016-06-27
Use wsPreserveAll.
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Thanks, but with wsPreserveAll you get all the CRLFs of the file, real text or not, so you can not filter it.
You have to filter it on your own. OXml cannot know when you want the linebreak to be passed or not.
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Ok, thanks, I was afraid of that.