Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(474)

Issue 12006047: code review 12006047: text/template/parse: print TextNodes using %s not %q (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by r
Modified:
11 years, 7 months ago
Reviewers:
dsymonds
CC:
golang-dev, dsymonds
Visibility:
Public.

Description

text/template/parse: print TextNodes using %s not %q This means that printing a Node will produce output that can be used as valid input. It won't be exactly the same - some spacing may be different - but it will mean the same. Fixes issue 4593.

Patch Set 1 #

Patch Set 2 : diff -r 2f6ebc31b696 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 0d2398504967 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M src/pkg/text/template/multi_test.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/text/template/parse/node.go View 2 chunks +3 lines, -1 line 0 comments Download
M src/pkg/text/template/parse/parse_test.go View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 3
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
11 years, 7 months ago (2013-07-31 04:08:00 UTC) #1
dsymonds
LGTM
11 years, 7 months ago (2013-07-31 04:25:24 UTC) #2
r
11 years, 7 months ago (2013-07-31 05:09:21 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=cd0bae7395e8 ***

text/template/parse: print TextNodes using %s not %q
This means that printing a Node will produce output that can be used as valid
input.
It won't be exactly the same - some spacing may be different - but it will mean
the same.

Fixes issue 4593.

R=golang-dev, dsymonds
CC=golang-dev
https://codereview.appspot.com/12006047
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b