system.configuration

  • Thread starter Andrzej Kaczmarczyk
  • 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
 
C

Christopher Reed

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!
 
A

Andrzej Kaczmarczyk

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top