Commit 124172e2 authored by Russ Cox's avatar Russ Cox

godoc: allow form feed in text files

Now recognizes misc/emacs/go-mode-load.el as text.

Fixes #2115.

R=gri
CC=golang-dev
https://golang.org/cl/4801061
parent ffa14e84
...@@ -123,7 +123,7 @@ func isText(s []byte) bool { ...@@ -123,7 +123,7 @@ func isText(s []byte) bool {
// last char may be incomplete - ignore // last char may be incomplete - ignore
break break
} }
if c == 0xFFFD || c < ' ' && c != '\n' && c != '\t' { if c == 0xFFFD || c < ' ' && c != '\n' && c != '\t' && c != '\f' {
// decoding error or control character - not a text file // decoding error or control character - not a text file
return false return false
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment