aboutsummaryrefslogtreecommitdiffstats
path: root/unxhtmlify.go
diff options
context:
space:
mode:
Diffstat (limited to 'unxhtmlify.go')
-rw-r--r--unxhtmlify.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/unxhtmlify.go b/unxhtmlify.go
index 4e7b175..7013d74 100644
--- a/unxhtmlify.go
+++ b/unxhtmlify.go
@@ -4,7 +4,7 @@ import (
"bufio"
"fmt"
"os"
- "strings"
+ "regexp"
)
func main() {
@@ -18,5 +18,6 @@ func main() {
}
func unxhtmlify_line(s string) string {
- return strings.Replace(s, " /", "", 1)
+ re := regexp.MustCompile(" ?/>")
+ return re.ReplaceAllString(s, ">")
}