Uploaded image for project: 'Qt Safe Renderer'
  1. Qt Safe Renderer
  2. QSR-2779

Preserve Spaces in Quoted Property Values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • QSR 3.0
    • QSR 3.0
    • Tooling
    • None

    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

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

          Activity

            People

              qtsaferendererteam Qt Safe Renderer Team
              teemu.holappa Teemu Holappa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes