Description
Modify how we handle properties to ensure that spaces inside quotes are not removed. This adjustment aims to prevent errors caused by unnecessary space removal.
Currently, we remove spaces from all properties manually, whether they are quoted or not. This method may cause problems for properties that include quotes and should not be altered. For example, in the Picture class, spaces are removed from all properties except "source":
void Picture::setNameValue(const QString &name, const Value &value) { if (name == QStringLiteral("source")) { Node::setNameValue(name, value); } else { Node::setNameValue(name, Value::stripSpaces(value)); } }
Update the property parsing approach to distinguish accurately between quoted and unquoted values. Specifically, implement additional checks in the QmlSafeLayoutVisitor class to identify properties that are quoted.
Attachments
Issue Links
- relates to
-
QSR-2778 qtsafelayouttool fails to parse the font family name with spaces
-
- In Review
-