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