Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
text/template: Node.String() should reproduce the original template #4593
I think the text representation of template Nodes should result in the same template output, when parsed. Node.String() methods all follow this direction, except TextNode, which outputs the template text quoted using %q. It should use %s. This is a really small thing, but I see no reason why Node.String() could not result in template snippets that reproduce the original. Am I missing something?