commit a66985c3b4859803f4ea0667292b7f17e767d13b
parent 7d79355321b60472b8ff26d463b18147becbbd47
Author: Peter Kosyh <p.kosyh@gmail.com>
Date: Fri, 5 Feb 2021 08:26:14 +0000
Merge branch 'master' of https://github.com/gl00my/ii-go
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
}
}