Skip to content

Commit

Permalink
fix a latex-problem (underscore) in displaytools
Browse files Browse the repository at this point in the history
  • Loading branch information
cknoll committed Feb 8, 2018
1 parent 9096028 commit d2a9401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipydex/displaytools.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def custom_display(lhs, rhs):
elif 'text/latex' in key:
if value.startswith("$$"):
# this is the expected case
new_value = r"$$\texttt{%s} := %s" % (lhs, value[2:])
new_value = r"$$\verb|%s| := %s" % (lhs, value[2:])
new_format_dict[key] = new_value
else:
# this is unexpected but raising an exceptions seems
Expand Down

0 comments on commit d2a9401

Please sign in to comment.