mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
webhooks/freshdesk/doc.md: Remove unescape_rendered_html kludge.
This reverts commit f476ec7fac
(#10312)
and replaces it with a proper fix using Jinja2 raw blocks.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
9f08513acb
commit
5e97e58df3
@@ -295,22 +295,6 @@ footer
|
||||
self.assertEqual(content_sans_whitespace,
|
||||
expected_html_sans_whitespace)
|
||||
|
||||
def test_encoded_unicode_decimals_in_markdown_template(self) -> None:
|
||||
template = get_template("tests/test_unicode_decimals.html")
|
||||
context = {'unescape_rendered_html': False}
|
||||
content = template.render(context)
|
||||
|
||||
content_sans_whitespace = content.replace(" ", "").replace('\n', '')
|
||||
self.assertEqual(content_sans_whitespace,
|
||||
'header<p>{}</p>footer')
|
||||
|
||||
context = {'unescape_rendered_html': True}
|
||||
content = template.render(context)
|
||||
|
||||
content_sans_whitespace = content.replace(" ", "").replace('\n', '')
|
||||
self.assertEqual(content_sans_whitespace,
|
||||
'header<p>{}</p>footer')
|
||||
|
||||
def test_markdown_nested_code_blocks(self) -> None:
|
||||
template = get_template("tests/test_markdown.html")
|
||||
context = {
|
||||
|
Reference in New Issue
Block a user