Strip trailing whitespace in code - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit b0416e9befb98c916f2fd80c2bcbb9cde5b72f95
(DIR) parent f2ab0b2608a1c4dc7109733be7eff80738ae9712
(HTM) Author: Anthony Fok <foka@debian.org>
Date: Tue, 4 Aug 2015 11:59:32 -0600
Strip trailing whitespace in code
Diffstat:
M hugolib/site.go | 4 ++--
M hugolib/site_test.go | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/hugolib/site.go b/hugolib/site.go
@@ -1593,9 +1593,9 @@ func (s *Site) futureStats() string {
switch s.futureCount {
case 0:
- return "0 future content "
+ return "0 future content"
case 1:
- msg = "1 future rendered "
+ msg = "1 future rendered"
default:
msg = fmt.Sprintf("%d future rendered", s.draftCount)
}
(DIR) diff --git a/hugolib/site_test.go b/hugolib/site_test.go
@@ -323,9 +323,9 @@ func doTestCrossrefs(t *testing.T, relative, uglyUrls bool) {
// Issue #1148: Make sure that no P-tags is added around shortcodes.
{filepath.FromSlash("sect/doc2.md"),
[]byte(fmt.Sprintf(`**Ref 1:**
-
+
{{< %s "sect/doc1.md" >}}
-
+
THE END.`, refShortcode))},
}