We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34a52b5 commit a307896Copy full SHA for a307896
1 file changed
html2text.go
@@ -20,7 +20,6 @@ var headersRE = regexp.MustCompile(`^(\/)?h[1-6]`)
20
var numericEntityRE = regexp.MustCompile(`^#([0-9]+)$`)
21
22
func parseHTMLEntity(entName string) (string, bool) {
23
-
24
if r, ok := entity[entName]; ok {
25
return string(r), true
26
}
@@ -36,6 +35,8 @@ func parseHTMLEntity(entName string) (string, bool) {
36
35
return "", false
37
38
+// SetUnixLbr with argument true sets Unix-style line-breaks in output ("\n")
39
+// with argument false sets Windows-style line-breaks in output ("\r\n", the default)
40
func SetUnixLbr(b bool) {
41
if b {
42
lbr = UNIX_LBR
0 commit comments