system.configuration

  • Thread starter Thread starter Andrzej Kaczmarczyk
  • Start date Start date
A

Andrzej Kaczmarczyk

Hi,

the method Save() from System.Configuration.Configuration
writes the xml config file.

is it possible to change the width of this file text lines? I'd like to edit
it manually from time to time, but the default writer wraps it around 70
characters line length.

I'd suit me best to turn off the line wrapping in config files completely

CUIN Kaczy
 
I would venture to say that the wrapping is most likely from your text
editor and not from the file itself. What editor are you using? Have you
looked at its properties to see if word-wrap has been turned on?

If the config file is actually what is "wrapping", then I would believe that
you are inserting some unintended CRLF within this file. You might look at
your code and your config file construction process to see if this is the
case.

Hope this helps!
 
I would venture to say that the wrapping is most likely from your text
editor and not from the file itself. What editor are you using? Have you
looked at its properties to see if word-wrap has been turned on?

I've checked before posting (and now i've checked again), and the wrappings
are off
here is the example (assume that I know how to turn off word-wraping in text
editor ;) )

<parameter aggregable="false" type="System.String" default=""
name="BuildingDescription">
<description text="" category="" order="0" name="" />
</parameter>

surprisingly, I've seen much longer lines in main app.exe.config
the section from which the above fragment was ripped is defined to be stored
in external file
the line break is always after 'default' item, and the indentation is
perfect
If the config file is actually what is "wrapping", then I would believe
that you are inserting some unintended CRLF within this file. You might
look at your code and your config file construction process to see if this
is the case.

Hope this helps!
CUIN Kaczy
 
Back
Top