1
0
mirror of https://github.com/ericchiang/pup synced 2024-11-24 00:48:36 +00:00

Support windows

This commit is contained in:
mattn 2014-09-16 10:16:50 +09:00
parent af61952d1c
commit 6bdab12d52

View File

@ -5,6 +5,7 @@ import (
"code.google.com/p/go.net/html/atom"
"fmt"
"github.com/fatih/color"
"github.com/mattn/go-colorable"
"regexp"
)
@ -21,6 +22,10 @@ var (
postWhitespace = regexp.MustCompile(`\s+$`)
)
func init() {
color.Output = colorable.NewColorableStdout()
}
func printIndent(level int) {
for ; level > 0; level-- {
fmt.Print(indentString)