Commit 2f29b599 authored by Benito van der Zander's avatar Benito van der Zander

regen tests with indendentations

parent 79b7ef6b
[1, 2, 3, {"a": 123, "b": "c"}]
[
1,
2,
3,
{
"a": 123,
"b": "c"
}
]
......@@ -3,6 +3,10 @@ xs:int("17"),
xs:untypedAtomic("?"),
3.7,
xs:float("10"))
{"a": 1}
{
"a": 1
}
text{"bc"}
[10]
[
10
]
<!DOCTYPE html>
<html><body>
[1, 2, 3, {"a": 123, "b": "c"}]
[
1,
2,
3,
{
"a": 123,
"b": "c"
}
]
</body></html>
17
[1, 2, 3, 4]
[
1,
2,
3,
4
]
hausmaus
999
+-+
......
{"a": 10, "b": 2}
{
"a": 10,
"b": 2
}
<?xml version="1.0" encoding="UTF-8"?>
<xml>
[1, 2, 3, {&quot;a&quot;: 123, &quot;b&quot;: &quot;c&quot;}]
[
1,
2,
3,
{
&quot;a&quot;: 123,
&quot;b&quot;: &quot;c&quot;
}
]
</xml>
......@@ -5,7 +5,11 @@ xs:int(&quot;17&quot;),
xs:untypedAtomic(&quot;?&quot;),
3.7,
xs:float(&quot;10&quot;))
{&quot;a&quot;: 1}
{
&quot;a&quot;: 1
}
<a>bc</a>
[10]
[
10
]
</xml>
......@@ -2337,7 +2337,7 @@ procedure TExtraction.printExtractedValue(value: IXQValue; invariable: boolean);
end;
pvkObject, pvkArray: begin
if (outputFormat <> ofAdhoc) and not invariable then needRawWrapper;
result := escape(v.jsonSerialize(printedNodeFormat, true));
result := escape(v.jsonSerialize(printedNodeFormat, not invariable));
end;
else if not printTypeAnnotations then begin
if (outputFormat <> ofAdhoc) and not invariable then needRawWrapper;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment