Extra lines inserted between paragraphs

Last post 07-25-2006, 2:25 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  07-24-2006, 6:04 PM 21211

    Extra lines inserted between paragraphs

    We are getting two extra lines inserted between paragraphs, whether the paste is text from a Web page into the Normal pane or code into the HTML pane. The extra lines are being inserted by the editor when I switch from one pane to another.

     What appears to be happening is, the editor is replacing each <p> and </p> tag at the beginning and end of paragraphs with <p> </p>. Since every paragraph begins with a <p> and ends with </p> and it performs the substitution for each, you get two blank lines inserted. Here's a sample of the code; I highlighted the parts that get replaced:
     
    <p><li CLASS="cntTxt01"><b>59½ in Service</b> - You can withdraw funds from your account while still employed once you have reached age 59½. The amount you can withdraw is subject to your plan's rules. <A href="microsite.aspx?page=contact">Talk to your benefits office</a> for details.</p>
                <p><li CLASS="cntTxt01"><b>90-24 Transfer</b> - You can directly transfer your account funds from one financial provider to another, either under your employer's retirement plan or if you meet an IRS-defined "triggering event." This transfer is not considered a taxable distribution.</p>
     

    For some reason it does not do that for paragraphs that do not have a </p> between them, just a standalone <p>.
     
    How can we stop this from happening ??
  •  07-25-2006, 2:25 PM 21237 in reply to 21211

    Re: Extra lines inserted between paragraphs

    PaulNewRiver,
     
    This problem is caused by nested unclosed <Li> with <P> tag.
     
    Please try the following code:
     
    Case 1: remove the unclosed <Li> tag.
     
    <p><b>59½ in Service</b> - You can withdraw funds from your account while still employed once you have reached age 59½. The amount you can withdraw is subject to your plan's rules. <a href="microsite.aspx?page=contact">Talk to your benefits office</a> for details.</p>
    <p><b>90-24 Transfer</b> - You can directly transfer your account funds from one financial provider to another, either under your employer's retirement plan or if you meet an IRS-defined "triggering event." This transfer is not considered a taxable distribution.</p>

    Case 2: Close <Li> tag and put it under <ul> Tag.
     
    <ul>
        <li><strong>59½ in Service</strong> - You can withdraw funds from your account while still employed once you have reached age 59½. The amount you can withdraw is subject to your plan's rules. <a href="microsite.aspx?page=contact">Talk to your benefits office</a> for details.</li>
        <li><strong>90-24 Transfer</strong> - You can directly transfer your account funds from one financial provider to another, either under your employer's retirement plan or if you meet an IRS-defined "triggering event." This transfer is not considered a taxable distribution.</li>
    </ul>

     

     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML