shithub: hugo

Download patch

ref: 608cfe62cfcc2de8cf952e88b75436d064a6af7f
parent: fd40fe39bcf2a0793e18bb305e05e586360d93b6
author: Bjørn Erik Pedersen <[email protected]>
date: Sun May 8 09:15:58 EDT 2016

Remove kr/pretty dependency

Fixes #2124
See https://github.com/kr/text/issues/6

--- a/hugolib/menu_test.go
+++ b/hugolib/menu_test.go
@@ -21,7 +21,6 @@
 	"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 @@
 
 		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)
 		}
 	}