diff --git a/src/go/doc/comment.go b/src/go/doc/comment.go index 0ec42643fd..73857330fa 100644 --- a/src/go/doc/comment.go +++ b/src/go/doc/comment.go @@ -445,7 +445,6 @@ func ToText(w io.Writer, text string, indent, preIndent string, width int) { w.Write([]byte("\n")) } else { w.Write([]byte(preIndent)) - line = convertQuotes(line) w.Write([]byte(line)) } } diff --git a/src/go/doc/comment_test.go b/src/go/doc/comment_test.go index e0adeb2f5c..0687f3a62b 100644 --- a/src/go/doc/comment_test.go +++ b/src/go/doc/comment_test.go @@ -126,6 +126,14 @@ $ pre $ pre2 `, }, + { + in: "Para.\n\tshould not be ``escaped''", + out: []block{ + {opPara, []string{"Para.\n"}}, + {opPre, []string{"should not be ``escaped''"}}, + }, + text: ". Para.\n\n$ should not be ``escaped''", + }, } func TestBlocks(t *testing.T) {