Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-114937

Space in \printuntil regex needs to be protected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.7.0 FF
    • 6.5.2
    • Build tools: qdoc
    • None
    • 35d4fdf52 (dev), d988115e0 (dev), 37e6b9cba (master)
    • DaVinci 84, DaVinci 85

    Description

      [\printline and friends support regex|
      https://doc.qt.io/qt-6/07-0-qdoc-commands-includingexternalcode.html#printline]:

      If the substring argument is surrounded by slashes it is interpreted as a regular expression.

      Example that is used is for detecting a closing bracket 'at the right level':

         \printuntil /^\}/
      

      Anyhow, when the closing bracket is prefixed with some spaces, one need to specially protect the spaces. This works:

         \printuntil /^\ \ \ \ \}/
      

      while this doesn't :

         \printuntil /^    \}/
      

      This is surprising, as whitespace normally doesn't need to be protected. This should either be fixed or documented.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-114937
          # Subject Branch Project Status CR V

          Activity

            People

              paulwicking Paul Wicking
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes