code review 5437061: html/template: fix documentation indent (issue 5437061)

27 views
Skip to first unread message

a...@golang.org

unread,
Nov 24, 2011, 7:18:41 PM11/24/11
to nige...@golang.org, golan...@googlegroups.com, re...@codereview-hr.appspotmail.com
Reviewers: nigeltao,

Message:
Hello nigeltao (cc: golan...@googlegroups.com),

I'd like you to review this change to
https://go.googlecode.com/hg


Description:
html/template: fix documentation indent

Please review this at http://codereview.appspot.com/5437061/

Affected files:
M src/pkg/html/template/content.go


Index: src/pkg/html/template/content.go
===================================================================
--- a/src/pkg/html/template/content.go
+++ b/src/pkg/html/template/content.go
@@ -12,10 +12,10 @@
// Strings of content from a trusted source.
type (
// CSS encapsulates known safe content that matches any of:
- // (1) The CSS3 stylesheet production, such as `p { color: purple }`.
- // (2) The CSS3 rule production, such as `a[href=~"https:"].foo#bar`.
- // (3) CSS3 declaration productions, such as `color: red; margin: 2px`.
- // (4) The CSS3 value production, such as `rgba(0, 0, 255, 127)`.
+ // 1. The CSS3 stylesheet production, such as `p { color: purple }`.
+ // 2. The CSS3 rule production, such as `a[href=~"https:"].foo#bar`.
+ // 3. CSS3 declaration productions, such as `color: red; margin: 2px`.
+ // 4. The CSS3 value production, such as `rgba(0, 0, 255, 127)`.
// See http://www.w3.org/TR/css3-syntax/#style
CSS string

@@ -41,8 +41,8 @@
// JSStr encapsulates a sequence of characters meant to be embedded
// between quotes in a JavaScript expression.
// The string must match a series of StringCharacters:
- // StringCharacter :: SourceCharacter but not `\` or LineTerminator
- // | EscapeSequence
+ // StringCharacter :: SourceCharacter but not `\` or LineTerminator
+ // | EscapeSequence
// Note that LineContinuations are not allowed.
// JSStr("foo\\nbar") is fine, but JSStr("foo\\\nbar") is not.
JSStr string


nige...@golang.org

unread,
Nov 24, 2011, 9:31:50 PM11/24/11
to a...@golang.org, golan...@googlegroups.com, re...@codereview-hr.appspotmail.com

a...@golang.org

unread,
Nov 24, 2011, 9:32:49 PM11/24/11
to a...@golang.org, nige...@golang.org, golan...@googlegroups.com, re...@codereview-hr.appspotmail.com
Reply all
Reply to author
Forward
0 new messages