AndreOneti / qml-formatter

Formatter, definition and autocomplete for QML language
MIT License
18 stars 2 forks source link

Don't add space after colon inside strings #22

Open Tobger opened 2 years ago

Tobger commented 2 years ago

Test case:

text: Qt.formatTime(currentTime,"hh:mm")
source: "qrc:/close.png"

Formatted using QML Formatter v1.2.4:

text: Qt.formatTime(currentTime, "hh: mm")
source: "qrc: /close.png"

Note the spaces after the : inside the strings. This changes user-facing text and I think the file path is invalid.

Expected formatted output:

text: Qt.formatTime(currentTime, "hh:mm")
source: "qrc:/close.png"

(A space was added after currentTime,, but not inside the strings)