Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
the linebreaks change from \n to \r\n after republish entire site.
Steps to reproduce in version 7.1.8 and 7.2.6:
Layout = null;
var list = Umbraco.Field("list").ToHtmlString();
After a save a publish the variable will contain= "one\ntwo\nthree"
After a republish entire site the variable will contain= "one\r\ntwo\r\nthree"
The convertLineBreaks option has no issue with this situation. But dependent code we use does a split using '\n' character to compare the values. After a republish this compare does not work anymore since the values are now "one\r", "two\r" and "three".
The cache (umbraco.config) saves the value as
Anyone any clue?
Meanwhile I'm looking at the Umbraco sources but I'm not familiar with the internals of content retrieval.
I would be very curious to know how Umbraco actually does that "republish entire site", since any XML compliant tool should have normalized linebreaks to a single LF character before doing any further processing.
Lurking here to be notified of any info you find...
you could have clicked the "follow" button ;-)
(meanwhile I 'll be notified too :-D)
Haha - Yes, I know :-)
But I had to state my curiousness about the XML normalization too... :-)
If by "republish all" you mean the "content" node right-click menu, then what happens is, the entire in-memory xml cache (the one that is saved in umbraco.config) is rebuilt from scratch by re-loading each node's xml fragment from the cmsContentXml table.
Whereas during the initial "save & publish", that xml fragment is generated locally and then it is inserted into the main xml cache document.
Can you file an issue?
I was indeed writing about the right click on 'content' and click on 'Republish entire site'.
I will create an issue for this.
Tnx for the feedback
I'd look for anywhere the XML is handled as "plain text" instead of XML - would be a prime suspect :)
Issue U4-6785 is created for this issue
Confirmed (see issue tracker) and fixed.
Thank you very much !!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted