Uploaded image for project: 'Scripting Documentation Application'
  1. Scripting Documentation Application
  2. SCRIPTDOC-24

Hidden char on method definition

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.4, 1.4.1
    • None
    • None
    • Unknown

    Description

      This issue is mainly a problem when we do copy/past of method definition from the scripting documentation. The issue is that there are the char 'U+200B' between the method name and the parentheses. And if se do copy/past and put this into velocity or other script the script will fail because of this unknown char and it's difficult to debug as it's an invisible char so without any tools to detect this it's just impossible to know why velocity crash.

       

      This following tools can be used to see the issue: https://www.soscisurvey.de/tools/view-chars.php

      So let's see a concrete example. Let's take this following method (copied from the scripting doc):

       

      addAttachment​(XWikiAttachment attachment) 

      If we put this in the previous tools we have this:

      addAttachmentU+200B(XWikiAttachment attachment)

      We can also see this on the HTML code:

      <span class="memberNameLink"><a href="#addAttachment(com.xpn.xwiki.doc.XWikiAttachment)">addAttachment</a></span>​(<a href="XWikiAttachment.html" title="class in com.xpn.xwiki.doc">XWikiAttachment</a>&nbsp;attachment) 

      And if we put this in the previous tools we can also detect it:

      <span class="memberNameLink"><a href="#addAttachment(com.xpn.xwiki.doc.XWikiAttachment)">addAttachment</a></span>U+200B(<a href="XWikiAttachment.html" title="class in com.xpn.xwiki.doc">XWikiAttachment</a>&nbsp;attachment)  

      This issue happen mainly for all method so it's a generic issues for all part of the scripting doc.

      Attachments

        Activity

          People

            Unassigned Unassigned
            josue Josué Tille
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: