So I came across the following question:
I have XML file that store string which located in local c inside server and I want every different project to access and read the XML file. At the same time every user may edit the XML file anytime which all of the user have the same string.
I use .resx in class library to embed the XML but the XML file only copies into the class library. When I make changes to XML file in local C it will not update.
XDocument.Load(typeof(ResourceFile.Resource1).Assembly.GetManifestResourceStream("C:/File.xml"));
I use above code to read my XML file.
And I wanted to fix it so that it looked like this:
I have XML file that store string which located in local c inside server and I want every different project to access and read the XML file. At the same time every user may edit the XML file anytime which all of the user have the same string.
I use .resx in class library to embed the XML but the XML file only copies into the class library. When I make changes to XML file in local C it will not update.
XDocument.Load(typeof(ResourceFile.Resource1).Assembly.GetManifestResourceStream("C:/File.xml"));
I use above code to read my XML file.
But placing my cursor before XDocument
and pressing space results in new lines, not spaces. The only way to fix it was to create a new line above, insert 4 spaces, and then delete the existing newline.
Since there has been a little disbelief, here is what I saw in the editor (the newlines above the code were inserted by pressing the space bar only) versus what I saw rendered:
Rendered:
My browser: Google Chrome 75.0.3770.100 (Official Build) (64-bit) (cohort: Stable)
I've tested in Firefox Quantum 67.0.4 (64-bit)
and Microsoft Edge 42.17134.1.0
, and I can't reproduce the issue, so it seems to be a Chrome-specific issue.
I'm assuming this is a bug with adding text/spaces before a long unbroken line.