aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2014-11-15 00:03:24 -0500
committerTeddy Wing2014-11-15 00:03:24 -0500
commit38aa737da94c0dac3cefa0e728fffcea9d567b6b (patch)
treeb2052c47be4e60df9ceee596f938cd4dfa724aa7
parent8c607c8561feb0948ae29329be8fa3043990d542 (diff)
downloadunXHTMLify-38aa737da94c0dac3cefa0e728fffcea9d567b6b.tar.bz2
unxhtmlify.go: Print unxhtmlified lines
Don't print the lines exactly as they come in. Instead run them through `unxhtmlify_string` and then print them out. This gives us the unXHTMLified version of stdin.
-rw-r--r--unxhtmlify.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/unxhtmlify.go b/unxhtmlify.go
index 50b4f5f..b35623e 100644
--- a/unxhtmlify.go
+++ b/unxhtmlify.go
@@ -10,7 +10,7 @@ import (
func main() {
scanner := bufio.NewScanner(os.Stdin)
for scanner.Scan() {
- fmt.Println(scanner.Text())
+ fmt.Println(unxhtmlify_string(scanner.Text()))
}
if err := scanner.Err(); err != nil {
fmt.Fprintf(os.Stderr, "reading standard input", err)