Incorrect translation using PlainTextWithLineFeeds

Last post 12-29-2006, 9:28 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  12-28-2006, 9:39 PM 25425

    Incorrect translation using PlainTextWithLineFeeds

    I typed the following into the editor:
     
    Example of a text document uploaded as Private to this one.
     
    Adding this to it
     
     
    The HTML is this:
     
    <html>
        <head>
            <link href="http://cutesoft.net/oneto1/class/qword.css" rel=stylesheet>
        </head>
        <body>
            <p>Example of a text document uploaded as Private to this one. </p>
            <p>&nbsp;</p>
            <p>Adding this to it</p>
        </body>
    </html>
     
    But CuteEditor incorrectly translates using the PlainTextWithLineFeeds function:
     
    The above becomes:
     
    <br> <br> <br> <br> <br> <p>Example of a text document uploaded as Private to Ben Bear, overwrite not allowed. <p><br> <p>&nbsp;<p><br> <p>Adding this to it<p><br> <br>
     
    PlainTextWithLineFeeds should theoretically translate it as:
     
    Example of a text document uploaded as Private to this one. [crlf][crlf]Adding this to it
     
    Where [crlf] is a linefeed.
     
    Why are all the <br> tags in there? Why is there a space after each <br> tag>?
     
    How to fix this?
     
    What rules can I apply using .NET's Replace function to clean this up?
  •  12-29-2006, 9:28 AM 25433 in reply to 25425

    Re: Incorrect translation using PlainTextWithLineFeeds

    Editor.PlainTextWithLinefeeds Property

    Retrieves the CuteEditor HTML content in plain text format and replace carriage returns with the appropriate br and p tags for breaks.

     
     
    HTML does not respect CR and LF in files. All white space is collapsed into single spaces, including tabs and line endings. We must turn them into <BR> or <P> elements.
     
    >>What rules can I apply using .NET's Replace function to clean this up?
     
    You can write a Regular expresssion to convert this to whatever you want.

    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