commit 50d48d1c3ac04ec2d0611c2173d078538fa39f47
parent 69613f361efe6a9189b2b02444205d5b212f49b0
Author: Peter Kosyh <p.kosyh@gmail.com>
Date: Fri, 5 Feb 2021 11:25:49 +0300
eol fix
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/ii-gemini/main.go b/ii-gemini/main.go
@@ -56,23 +56,23 @@ func gemini(f io.Writer, m *ii.Msg) {
for _, l := range temp {
l = strings.Replace(l, "\r", "", -1)
if pre {
- if l == "====\r" {
- l = "````\r"
+ if l == "====" {
+ l = "````"
pre = false
}
} else if xpm {
- if strings.HasSuffix(l, "};\r") {
+ if strings.HasSuffix(l, "};") {
xpm = false
fmt.Fprintln(f, l)
- fmt.Fprintln(f, "```\r")
+ fmt.Fprintln(f, "```")
continue
}
} else {
- if l == "====\r" {
+ if l == "====" {
l = "```"
pre = true
} else if strings.HasPrefix(l, "/* XPM */") {
- fmt.Fprintln(f, "```\r")
+ fmt.Fprintln(f, "```")
xpm = true
}
}