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

Writing quotes inside a string produces double quotes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 2.2.0
    • Qt Creator 2.1.0
    • Quick / QML Support
    • None
    • 02dd995dad73059102d3444e05626bcbc7c90f67

    Description

      If you have something like

      Text {
          text: "Quit"
      }
      

      and want to modify text property to "Don't quit", writing the single quote ' produces '' instead, so you'll end up with

      Text {
          text: "Don''t Quit"
      }
      

      If the cursor is inside a quoted string, this should not happen.

      Similarly, having 'foo' and typing " inside there produces "" instead. This still makes sense, as you usually want to match double quotes even if inside a a string.

      Attachments

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

        Activity

          People

            ckamm Christian Kamm
            holmsted Lasse Holmstedt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes