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

    • Sub-task
    • Resolution: Fixed
    • Major
    • None
    • None
    • Annotations
    • None
    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: