Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33733

Surplus double quote added while typing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • Qt Creator 18.0.0
    • C/C++/Obj-C++ Support
    • None
    • Ubuntu 24.04 LTS

      1. Open tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp from qtsvg's repository.
      2. Go to line 154:
            QTest::newRow("no width zero height") << R"(<svg><rect height="0"/></svg>)"_ba;
        
      3. Place the cursor right behind "rect".
      4. Try adding an x-position to that rect. Type an "x", a "=" and a double-quote (").
        They get added to the line as expected.
      5. Instead of typing a value, first type the closing double quote.
        Expected: One double quote is added to the line.
        Actual: Two double quotes are added to the line at once, so the line now reads:
            QTest::newRow("no width zero height") << R"(<svg><rect x=""" height="0"/></svg>)"_ba;
        

        That is one double quote too much.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kandeler Christian Kandeler
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change