Remove kr/pretty dependency
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 8 May 2016 11:15:58 +0000 (13:15 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 8 May 2016 11:16:16 +0000 (13:16 +0200)
Fixes #2124
See https://github.com/kr/text/issues/6

hugolib/menu_test.go

index cd5128543b0ddffcc4eee546c032ef8237d16692..40fd3b842a2aa5106e0fdf9aba04289d9c547285 100644 (file)
@@ -21,7 +21,6 @@ import (
        "path/filepath"
 
        "github.com/BurntSushi/toml"
-       "github.com/kr/pretty"
        "github.com/spf13/hugo/hugofs"
        "github.com/spf13/hugo/source"
        "github.com/spf13/viper"
@@ -576,13 +575,13 @@ func TestHomeNodeMenu(t *testing.T) {
 
                if isMenuCurrent != this.isMenuCurrent {
                        fmt.Println("isMenuCurrent", isMenuCurrent)
-                       pretty.Println("this:", this)
+                       fmt.Printf("this: %#v\n", this)
                        t.Errorf("[%d] Wrong result from IsMenuCurrent: %v for %q", i, isMenuCurrent, this.menu)
                }
 
                if hasMenuCurrent != this.hasMenuCurrent {
                        fmt.Println("hasMenuCurrent", hasMenuCurrent)
-                       pretty.Println("this:", this)
+                       fmt.Printf("this: %#v\n", this)
                        t.Errorf("[%d] Wrong result for menu %q menuItem %v for HasMenuCurrent: %v", i, this.menu, this.menuItem, hasMenuCurrent)
                }
        }