Problems with inserted spaces

Last post 06-06-2007, 5:24 PM by MITFrog. 5 replies.
Sort Posts: Previous Next
  •  05-21-2007, 7:06 PM 29861

    Problems with inserted spaces

    I wrote about this before, and it is still a problem.
     
    Example;  I want to create the following
     
    David enjoys people and has a heart for the person in pain.
     
    I use the following code:
     
    <p><strong><font style="color: #000080" color="#008000" size="3">D</font></strong><font size="2"><strong>avid</strong> enjoys people and has a heart for the person in pain.
     
    However, when I extract it via XHTML, it changes it to this:
     
    D avid enjoys people and has a heart for the person in pain.
     
    <p><strong><font style="color: #000080" color="#008000" size="3">D</font> </strong><font size="2"><strong>avid</strong> enjoys people and has a heart for the person in pain.
     
    I have not downloaded for a few days, so if you fixed it very recently, let me know...
     
    Thanks
     
     
  •  05-22-2007, 4:01 AM 29866 in reply to 29861

    Re: Problems with inserted spaces

    MITFrog,
     
    I can't reproduce this issue in the following link:

    http://cutesoft.net/example/xmloutput.aspx
     
    Please download the control again.
     
     

    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

  •  05-22-2007, 6:13 PM 29920 in reply to 29866

    Re: Problems with inserted spaces

    I pasted the following at the bottom of your example:
     
    The Spiritual Life Development course
     
    Now, if you click Submit, nothing changes.  however, if you look down at the XHTML code, you get:
     
      <div>
        <font class="cap">
          <strong style="font-size: 12pt; color: #000080">T</strong>
        </font>he <font class="booktitle"><strong>Spiritual Life Development</strong></font> course </div>
     
    With a little cursoring around, you will see the space after the T</strong> above.  This is the problem.  Since you are not redisplaying the XHTML output, you don't see it, but if you save the XHTML output, and then later reload it into the editor, the space will then display.
     
    Note that I submitted a report earlier about extra spaces being inserted in the XHTML output.  Same problem.  As I recall, you never responded to the previous issue.
     
    Thanks,
     
  •  05-22-2007, 8:25 PM 29929 in reply to 29920

    Re: Problems with inserted spaces

    MITFrog,
     
    Please check this example.

    http://richtextbox.com/test/MITFrog.aspx
     
    In this example, we use XHTML extract the content from the editor.
     
    Please do whatever you can to break this example and let me know the steps.
     
     

    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

  •  05-23-2007, 5:04 PM 30016 in reply to 29929

    Re: Problems with inserted spaces

    Easy.  You will note 2 cases of the following pasted in:
     
    The Life Development
     
    but you will notice that there is a spece between the big, blue T and the h.  Copy this, paste it, backspace over the extra space, and click Add.  You will see it appear with the space re-inserted.
  •  06-06-2007, 5:24 PM 30452 in reply to 29929

    Re: Problems with inserted spaces

    One simple example is this:
     
    <strong>Test</strong><strong>ing</strong>
     
    This should result in Testing but after adding it, it shows as Test ing.
     
    There are a number of situations where this happens - a spece is added (in this case, between the </strong> and <strong> tags that are right next to each other).
     
    I could search for other cases if you need me to - had other problems... but this is a simple example.
     
    Is this something you can fix?  Can you fix it in the "general" case?
     
    Thanks!
     
    P.S. Another example is a table created by ImageReady (Adobe).  I am using the editor for creating page templates for a courseware site.  I design the graphic buttons in ImageReady, with javascript rollovers.  When I paste into the editor, and use the Preview function, looks perfect!  Save as XHTML, and reload, and it is a mess - because of spaces added within each <td></td> tag.  This space messes up the layout so it is unusable.  If you need a sample of this code, please let me know and I will email it to you.  This space problem is making the editor usless in this application.  If there is a work-around, please let me know.
View as RSS news feed in XML