()
| 461 | } |
| 462 | |
| 463 | func (n *Node) indicatedString() bool { |
| 464 | return n.Kind == ScalarNode && |
| 465 | (shortTag(n.Tag) == strTag || |
| 466 | (n.Tag == "" || n.Tag == "!") && n.Style&(SingleQuotedStyle|DoubleQuotedStyle|LiteralStyle|FoldedStyle) != 0) |
| 467 | } |
| 468 | |
| 469 | // SetString is a convenience function that sets the node to a string value |
| 470 | // and defines its style in a pleasant way depending on its content. |