This commit is contained in:
Kovid Goyal 2023-03-28 21:06:39 +05:30
parent 7ed7e82637
commit e095a2ab43
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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