Show More
@@ -10,7 +10,7 b' import tempfile' | |||||
10 | import shutil |
|
10 | import shutil | |
11 | import subprocess |
|
11 | import subprocess | |
12 | from base64 import encodebytes |
|
12 | from base64 import encodebytes | |
13 | from textwrap import wrap as splitstring |
|
13 | import textwrap | |
14 |
|
14 | |||
15 | from IPython.utils.process import find_cmd, FindCmdError |
|
15 | from IPython.utils.process import find_cmd, FindCmdError | |
16 | from traitlets.config import get_config |
|
16 | from traitlets.config import get_config | |
@@ -94,7 +94,7 b" def latex_to_png(s, encode=False, backend=None, wrap=False, color='Black'," | |||||
94 | if len(color) == 7: |
|
94 | if len(color) == 7: | |
95 | try: |
|
95 | try: | |
96 | color = "RGB {}".format(" ".join([str(int(x, 16)) for x in |
|
96 | color = "RGB {}".format(" ".join([str(int(x, 16)) for x in | |
97 |
|
|
97 | textwrap.wrap(color[1:], 2)])) | |
98 | except ValueError: |
|
98 | except ValueError: | |
99 | raise ValueError('Invalid color specification {}.'.format(color)) |
|
99 | raise ValueError('Invalid color specification {}.'.format(color)) | |
100 | else: |
|
100 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now