Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-491

Non-breakable spaces from XHTML are transformed into regular spaces in XDOM

    XMLWordPrintable

    Details

    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Actual result:
      Apparently, when parsing an (X)HTML which contains an   , this non-breakable space will become a regular space in XDOM (and therefore in XWiki syntax if serialized after).

      Expected result:
      non-breakable spaces from (X)HTML should be kept as non-breakable spaces, since they're probably needed if they were explicitely added as non-breakable spaces.

      Note that there are many places where non-breakable spaces are necessary, although nobody actually uses them (e.g. when writing big numbers with separation between the digit blocks, that is non-breakable, e.g. 10 000). The parser should allow correct handling of these cases.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              lucaa Anca Luca
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: