This commit is contained in:
Kovid Goyal
2023-03-28 21:06:39 +05:30
parent 7ed7e82637
commit e095a2ab43

View File

@@ -28,6 +28,7 @@ func convert_text(text string, cols int) string {
for s1.Scan() {
full_line := s1.Text()
if full_line == "" {
lines = append(lines, empty_line)
continue
}
if strings.TrimRight(full_line, "\r") == "" {