From 43428e759d9fbc5a319c2b929bfb4469938cc386 Mon Sep 17 00:00:00 2001 From: clsr Date: Thu, 23 Dec 2021 01:54:47 +0000 Subject: Add EscapeAll and escape all spaces in links --- parse_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'parse_test.go') diff --git a/parse_test.go b/parse_test.go index e70b833..1c7dad9 100644 --- a/parse_test.go +++ b/parse_test.go @@ -269,7 +269,7 @@ var parseTests = map[string]*Document{ "title\n\tfoo bar\n" + "links\n\tqwe asd\n\tzxc 123\n" + - "site\n\tfoo\n\t\tbar\n\t\tbaz/quux\n\t\t\t123\n" + + "site\n\tfoo Foo\n\t\tbar\n\t\tbaz/qu\\ ux Test\n\t\t\t123\n" + "title\n\tbaz\n" + "links\n\tfoo\n" + "site\n\ttest": &Document{ @@ -283,10 +283,12 @@ var parseTests = map[string]*Document{ Children: []Site{ Site{ Path: "foo", + Name: "Foo", Children: []Site{ Site{Path: "bar"}, Site{ - Path: "baz/quux", + Path: "baz/qu ux", + Name: "Test", Children: []Site{ Site{Path: "123"}, }, -- cgit