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

Issue 5437051: code review 5437051: html: ingore newline at the start of a <pre> block (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by andybalholm
Modified:
13 years, 3 months ago
Reviewers:
CC:
nigeltao, golang-dev
Visibility:
Public.

Description

html: ingore newline at the start of a <pre> block Pass tests3.dat, test 4: <!DOCTYPE html><html><head></head><body><pre>\n</pre></body></html> | <!DOCTYPE html> | <html> | <head> | <body> | <pre> Also pass tests through test 11: <!DOCTYPE html><pre>&#x0a;&#x0a;A</pre>

Patch Set 1 #

Patch Set 2 : diff -r f68df3b9a830 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r f68df3b9a830 https://go.googlecode.com/hg/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -1 line) Patch
M src/pkg/html/parse.go View 1 1 chunk +17 lines, -0 lines 1 comment Download
M src/pkg/html/parse_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/html/render.go View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 3
andybalholm
Hello nigeltao@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 3 months ago (2011-11-23 23:57:52 UTC) #1
nigeltao
LGTM. http://codereview.appspot.com/5437051/diff/1002/src/pkg/html/parse.go File src/pkg/html/parse.go (right): http://codereview.appspot.com/5437051/diff/1002/src/pkg/html/parse.go#newcode632 src/pkg/html/parse.go:632: case "pre", "listing": I think you want "textarea" ...
13 years, 3 months ago (2011-11-24 02:14:29 UTC) #2
nigeltao
13 years, 3 months ago (2011-11-24 02:15:15 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=75348d679279 ***

html: ingore newline at the start of a <pre> block

Pass tests3.dat, test 4:
<!DOCTYPE html><html><head></head><body><pre>\n</pre></body></html>

| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     <pre>

Also pass tests through test 11:
<!DOCTYPE html><pre>&#x0a;&#x0a;A</pre>

R=nigeltao
CC=golang-dev
http://codereview.appspot.com/5437051

Committer: Nigel Tao <nigeltao@golang.org>
Sign in to reply to this message.

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