all repos

anpi @ b372e68afef31d6eecd1a33b53fe6f85993b1a4d

yaml to anki importer
1 files changed, 1 insertions(+), 0 deletions(-)
remove \n in the end of sting if there's one
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2025-06-01 18:16:51 +0300
Parent: a098b82
M main.go
ยทยทยท
        96
        96
         	str := string(markdown.Render(doc, html.NewRenderer(opts)))

      
        97
        97
         	str = strings.ReplaceAll(str, "<p>", "")

      
        98
        98
         	str = strings.ReplaceAll(str, "</p>", "")

      
        
        99
        +	str = strings.TrimSuffix(str, "\n")

      
        99
        100
         

      
        100
        101
         	return str

      
        101
        102
         }