Skip to content

Commit a307896

Browse files
committed
Add comment and remove unnecessary change
1 parent 34a52b5 commit a307896

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

html2text.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ var headersRE = regexp.MustCompile(`^(\/)?h[1-6]`)
2020
var numericEntityRE = regexp.MustCompile(`^#([0-9]+)$`)
2121

2222
func parseHTMLEntity(entName string) (string, bool) {
23-
2423
if r, ok := entity[entName]; ok {
2524
return string(r), true
2625
}
@@ -36,6 +35,8 @@ func parseHTMLEntity(entName string) (string, bool) {
3635
return "", false
3736
}
3837

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)
3940
func SetUnixLbr(b bool) {
4041
if b {
4142
lbr = UNIX_LBR

0 commit comments

Comments
 (0)