#8 conversion to HTML fails to change consecutive spaces  

open
nobody
None
5
2006-10-16
2005-05-20
Anonymous
No

If the input is indented, the output HTML looks like this:-

<HTML>
<BODY>
This
<br> is
<br> indented
<br> here
<br></BODY>
</HTML>

Which is *wrong*. What it *should* look like this this:-

<HTML>
<BODY>
This
<br>&nbsp;is
<br>&nbsp;&nbsp;indented
<br>&nbsp;&nbsp;&nbsp;here
<br></BODY>
</HTML>

Discussion

  • Andrew Punch

    Andrew Punch - 2005-05-23

    Logged In: YES
    user_id=928005

    Multiple spaces must be encoded as &nbsp;

    See:
    http://www.w3.org/TR/html4/struct/text.html#h-9.1

    "In particular, user agents should collapse input white
    space sequences when producing output inter-word space."

    i.e. Multiple whitespaces in a row should be treated as a
    single white space.

     
  • Andrew Punch

    Andrew Punch - 2005-05-23

    Logged In: YES
    user_id=928005

    Will be fixed in next version

     
  • Andrew Punch

    Andrew Punch - 2006-10-16

    Logged In: YES
    user_id=928005

    Fixed. The rtf reader does not support indentation so I will
    move this item to a feature request.

     
  • Andrew Punch

    Andrew Punch - 2006-10-16
    • labels: 641685 -->
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks