Fix stringified value and key writing for quotes
This commit is contained in:
parent
8077bbfa1f
commit
3e7bae969e
3 changed files with 21 additions and 3 deletions
|
@ -36,7 +36,10 @@ class StringTag extends Tag {
|
|||
|
||||
@override
|
||||
void writeStringifiedValue(StringBuilder builder, int indent, bool isList) {
|
||||
builder.append("${isList ? "".padLeft(indent, '\t') : ""}\"${value}\"");
|
||||
if (shouldQuote(value))
|
||||
builder.append("${isList ? "".padLeft(indent, '\t') : ""}\"${value}\"");
|
||||
else
|
||||
builder.append("${isList ? "".padLeft(indent, '\t') : ""}${value}");
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue