Uploaded image for project: 'FAQ Application'
  1. FAQ Application
  2. FAQ-5

remove blank from FAQ name

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Trivial
    • None
    • Previous versions in xwiki-platform
    • None

    Description

      Hello,
      If I create a new FAQ with blank character between text and question mark, the FAQ page contain some space.
      By example: "My FAQ ?" will be name "My FAQ++++++"

      To fix it, you must replace this line of FAQCode/FAQHomeSheet:

      #set ($question = $stringtool.stripEnd($stringtool.trim($!{request.question}), '?'))
      

      by

      #set ($question = $stringtool.stripEnd($stringtool.trim($!{request.question}), ' ?'))
      

      Thxs

      Pascal B

      Attachments

        Activity

          People

            Unassigned Unassigned
            Pbas Pascal BASTIEN
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: