Using Visual Studio generated Settings file, when I input only spaces they are converted to a line break.
I think that’s because the Settings file content is synchronized to app.config and as the IDE has XML auto formatting enabled it converts:
<setting name="Separator" serializeAs="String">
<value> </value>
</setting>
to
<setting name="Separator" serializeAs="String">
<value>
</value>
</setting>
automatically.
How to fix this without disabling XML auto formatting?
I tried without success.
It is strange indeed.
The only thing I found is: create the setting, edit the app.config file:
<Value> </Value>(which is xml for non bracking space) Open the settings file, it will warn that it is changing the value, press ok. But, the setting when used in code will give as string So, not a complete answer…Marcel