Line break problem - to many braks being inserted

  •  09-08-2008, 12:00 AM

    Line break problem - to many braks being inserted

    Hello - I have a strange issue I have been avoiding for a while now.  if I enter:
     
    the first line
    the second line immediatly after the first

    the third line has one line break above it


    the fourth line has two line breaks above it
     
    Before I submit the txt above I click the HTML button.  It shows me the following:
     
    the first line<br />
    the second line immediatly after the first<br />
    <br />
    the third line has one line break above it<br />
    <br />
    <br />
    the fourth line has two line breaks above it
     
    Which is perfect.  Exactly as I want it to look.  Now I submit the information into my DB however when the page refreshes the content look like this:
     
    the first line

    the second line immediatly after the first



    the third line has one line break above it





    the fourth line has two line breaks above it
     
    As you can see for some reason all the BR tags are doubling up.  The HTML button in relation to the above output is:
     
    the first line<br />
    <br />
    the second line immediatly after the first<br />
    <br />
    <br />
    <br />
    the third line has one line break above it<br />
    <br />
    <br />
    <br />
    <br />
    <br />
    the fourth line has two line breaks above it 
     
    My editor (version 6.0) break element is set to:
     editor.BreakElement= "br"
    I have tried changing this to p and div however it makes no diference.  Any ideas how to fix this?
     
    TYIA

    Wind is your friend
View Complete Thread