I needed to have a second attribute display on a new line so I added the
center tuple (with Value as empty string) and the result was that only
first attribute displays instead of the final attribute (time_s)
displaying on a new line as I wanted:

        us::VariantBuilder attrs;
        attrs.add_tuple({
            {"value", us::Variant(date_s.toStdString())}
        });
        attrs.add_tuple({
            {"value", us::Variant("")}
        }); 
        attrs.add_tuple({
            {"value", us::Variant(time_s.toStdString())}
        }); 
        res["attributes"] = attrs.end()


phablet@ubuntu-phablet:/tmp$ apt-cache policy libunity-scopes3
libunity-scopes3:
  Installed: 0.6.4+14.10.20140828.1-0ubuntu

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1355901

Title:
  Empty cards attributes are ignored

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity-scopes-shell/+bug/1355901/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to