Closed UsmanMohammad closed 6 years ago
it looks to be a html css thing, I can get the result by adding a css property whites-pace: pre
Although having spaces in file name is usually not considered a good practice, but since it is allowed, I guess we can make the change?
Using spaces is one thing, but using spaces at the beginning of the file name is another. The Windows shell doesn't even let you do that, as it auto-trims any heading/trailing spaces (even though NTFS does support it).
I don't think this is worth spending time on.
Just want to clarify what happened ton us, It wasn't intentional, the file was created with the "+" button on the gui, and I had pasted the file name which also copied the space in front of the name.
This caused issues with our applicationHost.xdt file in the site folder.
Our webconfig was using a server variable, however our site crashed when ever it was calling that variable as we didn't have "applicationHost.xdt", instead we had " applicationHost.xdt" and couldn't figure out the problem from the web ui,.
Ideally, the "+" button from the ui should remove prepended spaces when naming the file.
Ah yes, then the real issue is that the + UI should trim the white spaces around the file name, and not that the whitespace is not displayed. I would definitely be up for fixing that part, which presumably is a missing trim() call somewhere in the UI logic.
I've run into the same issue in the azure portal when setting up app settings. So much wasted time 😞
Repro steps.
Mention any other details that might be useful.