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

Issue 14023043: code review 14023043: go.tools/blog: replace "\\" with "/" in path string to ...

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by Tw
Modified:
10 years, 6 months ago
Reviewers:
brainman, adg
CC:
golang-dev, dsymonds, aam, dave_cheney.net, adg, brainman
Visibility:
Public.

Description

go.tools/blog: replace "\\" with "/" in path string to be compatible with windows platform Fixes Issue 6539 The problem happens on my win7, for example, the path is "/content\\foo.article". It leads to the wrong link in generated html page. So I think we should replace all"\\" with "/" in path string at first.

Patch Set 1 #

Patch Set 2 : diff -r a7a5efbad067 http://code.google.com/p/go.tools #

Total comments: 1

Patch Set 3 : diff -r 46a5b05299b4 http://code.google.com/p/go.tools #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M blog/blog.go View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14
Tw
10 years, 7 months ago (2013-09-27 07:13:13 UTC) #1
Tw
10 years, 6 months ago (2013-10-05 04:55:14 UTC) #2
aam
https://codereview.appspot.com/14023043/diff/1002/blog/blog.go File blog/blog.go (right): https://codereview.appspot.com/14023043/diff/1002/blog/blog.go#newcode194 blog/blog.go:194: p = strings.Replace(p, "\\", "/", -1) you probably want ...
10 years, 6 months ago (2013-10-05 15:46:31 UTC) #3
Tw
Hello golang-dev@googlegroups.com, dsymonds@golang.org, mirtchovski@gmail.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to http://code.google.com/p/go.tools
10 years, 6 months ago (2013-10-06 01:52:57 UTC) #4
aam
On 2013/10/06 01:52:57, Tw wrote: > Hello mailto:golang-dev@googlegroups.com, mailto:dsymonds@golang.org, mailto:mirtchovski@gmail.com > (cc: mailto:golang-dev@googlegroups.com), > > ...
10 years, 6 months ago (2013-10-06 01:56:46 UTC) #5
Tw
On 2013/10/06 01:56:46, aam wrote: > On 2013/10/06 01:52:57, Tw wrote: > > Hello mailto:golang-dev@googlegroups.com, ...
10 years, 6 months ago (2013-10-06 02:07:20 UTC) #6
dave_cheney.net
On Sun, Oct 6, 2013 at 1:07 PM, <tw19881113@gmail.com> wrote: > On 2013/10/06 01:56:46, aam ...
10 years, 6 months ago (2013-10-07 00:33:15 UTC) #7
dave_cheney.net
tw, we're deep in the bug fix stage of go 1.2. Could you please start ...
10 years, 6 months ago (2013-10-07 00:34:46 UTC) #8
Tw
On 2013/10/07 00:34:46, dfc wrote: > tw, we're deep in the bug fix stage of ...
10 years, 6 months ago (2013-10-07 07:01:48 UTC) #9
adg
LGTM Have you signed the CLA? http://golang.org/doc/contribute.html#Copyright
10 years, 6 months ago (2013-10-08 00:14:18 UTC) #10
brainman
LGTM Please add "Fixes Issue 6539" to your CL description, as explained here http://golang.org/doc/contribute.html. Thank ...
10 years, 6 months ago (2013-10-08 03:05:59 UTC) #11
Tw
On 2013/10/08 03:05:59, brainman wrote: > LGTM > > Please add "Fixes Issue 6539" to ...
10 years, 6 months ago (2013-10-08 04:25:35 UTC) #12
Tw
On 2013/10/08 00:14:18, adg wrote: > LGTM > > Have you signed the CLA? http://golang.org/doc/contribute.html#Copyright ...
10 years, 6 months ago (2013-10-08 04:33:45 UTC) #13
adg
10 years, 6 months ago (2013-10-08 05:56:05 UTC) #14
*** Submitted as
https://code.google.com/p/go/source/detail?r=86e5a2953df6&repo=tools ***

go.tools/blog: replace "\\" with "/" in path string to be compatible with
windows platform

Fixes Issue 6539

The problem happens on my win7,
for example, the path is "/content\\foo.article".
It leads to the wrong link in generated html page.
So I think we should replace all"\\" with "/" in path string at first.

R=golang-dev, dsymonds, mirtchovski, dave, adg, alex.brainman
CC=golang-dev
https://codereview.appspot.com/14023043

Committer: Andrew Gerrand <adg@golang.org>
Sign in to reply to this message.

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