Skip to content

Commit

Permalink
Fix rendering of error box in latex documents
Browse files Browse the repository at this point in the history
  • Loading branch information
mic4ael authored and ThiefMaster committed Nov 22, 2017
1 parent 34d1721 commit 936d166
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Bugfixes
- Do not show borders above/below the message in registration emails
unless both the header and body blocks are used (:issue:`3151`)
- Roll-back the database transaction when an error occurs.
- Fix rendering of the LaTeX error box (:issue:`3163`)


Version 2.0rc1
Expand Down
7 changes: 2 additions & 5 deletions indico/util/mdx_latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,8 @@ def latex_render_error(message):
:returns: LaTeX code for error box
"""
return textwrap.dedent(r"""
\begin{tcolorbox}[width=\textwidth,colback=red!5!white,colframe=red!75!black,
title={Indico rendering error}]
\begin{verbatim}
%s
\end{verbatim}
\begin{tcolorbox}[width=\textwidth,colback=red!5!white,colframe=red!75!black,title={Indico rendering error}]
\begin{verbatim}%s\end{verbatim}
\end{tcolorbox}""" % message)


Expand Down

0 comments on commit 936d166

Please sign in to comment.