remove meta.DoubleQuoteToken
This commit is contained in:
@@ -578,13 +578,10 @@ func (p *Printer) printScalarEncapsed(n node.Node) {
|
||||
nn := n.(*scalar.Encapsed)
|
||||
p.printMeta(nn, meta.NodeStart)
|
||||
|
||||
p.printMeta(nn, meta.DoubleQuoteToken)
|
||||
io.WriteString(p.w, "\"")
|
||||
|
||||
for _, part := range nn.Parts {
|
||||
p.Print(part)
|
||||
}
|
||||
|
||||
io.WriteString(p.w, "\"")
|
||||
|
||||
p.printMeta(nn, meta.NodeEnd)
|
||||
|
||||
@@ -620,7 +620,7 @@ func TestPrinterPrintScalarEncapsed(t *testing.T) {
|
||||
&meta.Data{
|
||||
Type: meta.WhiteSpaceType,
|
||||
Value: " ",
|
||||
TokenName: meta.DoubleQuoteToken,
|
||||
TokenName: meta.NodeStart,
|
||||
},
|
||||
},
|
||||
Parts: []node.Node{
|
||||
|
||||
Reference in New Issue
Block a user