Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-12690 Create a first version of the annotations client / UI
  3. XWIKI-12693

Plain text content alterer doesn't clean non-breakable spaces so annotation creation fails

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Annotations
    • Labels:
      None
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      When the selection / context contains a non-breakable space, it is not cleaned up by the PlainTextContentAlterer so the selection cannot be mapped on the document source, so the annotation creation fails.
      To reproduce, use the following wiki source

      a** b** c
      

      and try to annotate "a b".

        Attachments

          Activity

            People

            Assignee:
            lucaa Anca Luca
            Reporter:
            lucaa Anca Luca
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: