From 5e4c14aae925876e4ee2a45670a86bd82eca7bba Mon Sep 17 00:00:00 2001 From: Andre Marianiello Date: Sun, 17 Mar 2019 18:26:57 -0400 Subject: [PATCH] Don't trim whitespace --- display.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/display.go b/display.go index 3b16f01..79e0e0e 100644 --- a/display.go +++ b/display.go @@ -276,7 +276,7 @@ func jsonify(node *html.Node) map[string]interface{} { case html.ElementNode: vals["tag"] = node.Data case html.TextNode: - text := strings.TrimSpace(node.Data) + text := node.Data if text != "" { if pupEscapeHTML { // don't escape javascript