diff options
author | zeripath <art27@cantab.net> | 2020-09-05 16:45:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-05 11:45:10 -0400 |
commit | 9fdb4f887b65a6ddacefc8c7e4580e333d7e4b95 (patch) | |
tree | aa666649a9cac194bb189bcdc1ab7bc1e7ea6bfb /modules/markup/orgmode | |
parent | e80eda7d01ca0ea06e48f6f2fc22b174c5a5c91a (diff) | |
download | gitea-9fdb4f887b65a6ddacefc8c7e4580e333d7e4b95.tar.gz gitea-9fdb4f887b65a6ddacefc8c7e4580e333d7e4b95.zip |
Update to go-org 1.3.2 (#12728)
* Update to go-org 1.3.2
Fix #12727
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix unit test
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'modules/markup/orgmode')
-rw-r--r-- | modules/markup/orgmode/orgmode_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/markup/orgmode/orgmode_test.go b/modules/markup/orgmode/orgmode_test.go index 40323912b4..020a3f592a 100644 --- a/modules/markup/orgmode/orgmode_test.go +++ b/modules/markup/orgmode/orgmode_test.go @@ -27,12 +27,12 @@ func TestRender_StandardLinks(t *testing.T) { assert.Equal(t, strings.TrimSpace(expected), strings.TrimSpace(buffer)) } - googleRendered := "<p>\n<a href=\"https://google.com/\" title=\"https://google.com/\">https://google.com/</a>\n</p>" + googleRendered := "<p><a href=\"https://google.com/\" title=\"https://google.com/\">https://google.com/</a></p>" test("[[https://google.com/]]", googleRendered) lnk := util.URLJoin(AppSubURL, "WikiPage") test("[[WikiPage][WikiPage]]", - "<p>\n<a href=\""+lnk+"\" title=\"WikiPage\">WikiPage</a>\n</p>") + "<p><a href=\""+lnk+"\" title=\"WikiPage\">WikiPage</a></p>") } func TestRender_Images(t *testing.T) { @@ -48,5 +48,5 @@ func TestRender_Images(t *testing.T) { result := util.URLJoin(AppSubURL, url) test("[[file:"+url+"]]", - "<p>\n<img src=\""+result+"\" alt=\""+result+"\" title=\""+result+"\" />\n</p>") + "<p><img src=\""+result+"\" alt=\""+result+"\" title=\""+result+"\" /></p>") } |