From 020a415e834aa70b0bd25ea252016cfbde1724d5 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 1 Sep 2013 11:10:33 -0400 Subject: [PATCH] Enhancement - Better support for quoted values in attributes. --- src/parser/A3t.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/parser/A3t.cpp b/src/parser/A3t.cpp index b9638e5c7..4bf5112fd 100644 --- a/src/parser/A3t.cpp +++ b/src/parser/A3t.cpp @@ -390,9 +390,10 @@ void A3t::findAttribute () if (n.skip (':')) { std::string value; - if (n.getUntilEOS (value)) + if (n.getQuoted ('"', value) || + n.getQuoted ('\'', value) || + n.getUntilEOS (value)) { - std::string canonical; if (canonicalize (canonical, "attribute", name)) {