mirror of https://github.com/zulip/zulip.git
Fix browser error markdown formatting
(imported from commit ce793676d6118d86a8aee4f3aae1bc728b0cd8fd)
This commit is contained in:
parent
53c76aa657
commit
b12649e548
|
@ -62,11 +62,11 @@ def zulip_browser_error(report):
|
||||||
body = "User: %s\n" % (user_info,)
|
body = "User: %s\n" % (user_info,)
|
||||||
body += (
|
body += (
|
||||||
"Message: %(message)s\n"
|
"Message: %(message)s\n"
|
||||||
"~~~\n%(stacktrace)s\n~~~\n"
|
"~~~\n%(stacktrace)s\n~~~\n~~~\n"
|
||||||
"User agent: `%(user_agent)s`\n"
|
"- User agent: %(user_agent)s\n"
|
||||||
"href: `%(href)s`\n"
|
"- href: %(href)s\n"
|
||||||
"Server path: `%(server_path)s`\n"
|
"- Server path: %(server_path)s\n"
|
||||||
"Deployed version: `%(version)s`\n"
|
"- Deployed version: %(version)s\n~~~\n"
|
||||||
% report )
|
% report )
|
||||||
|
|
||||||
more_info = report['more_info']
|
more_info = report['more_info']
|
||||||
|
@ -74,6 +74,7 @@ def zulip_browser_error(report):
|
||||||
body += "\nAdditional information:\n~~~"
|
body += "\nAdditional information:\n~~~"
|
||||||
for (key, value) in more_info.iteritems():
|
for (key, value) in more_info.iteritems():
|
||||||
body += "\n%s: %s" % (key, value)
|
body += "\n%s: %s" % (key, value)
|
||||||
|
body += "\n~~~\n"
|
||||||
|
|
||||||
body += "Log:\n~~~\n%s\n~~~" % (report['log'],)
|
body += "Log:\n~~~\n%s\n~~~" % (report['log'],)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue