提交 61f6bfdd 编写于 作者: M Mislav Marohnić

Compatibility with Go < 1.12

上级 d2114da6
......@@ -38,7 +38,7 @@ func escape(src []byte, re *regexp.Regexp) []byte {
}
func roffText(src []byte) []byte {
return bytes.ReplaceAll(escape(src, roffEscape), []byte{'~'}, tilde)
return bytes.Replace(escape(src, roffEscape), []byte{'~'}, tilde, -1)
}
type RoffRenderer struct {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册