mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
b1860e301a
In python 3 the colors need to be strings and not bytes:
This was the equivalent of
>> print("%s" % b"1")
"b'1'"
since the colors were bytes the call to dvipng was something like
dvipng -Ttight -depth -height -D 115 -fg "b'rgb 0.937255 0.941176 0.945098'" -bg "b'rgb 0.137255 0.149020 0.160784'" "lyxpreviewxBJEqm.dvi"
Note the "b'rgb after both -fg and -bg that wrecked havoc and thus dvipng failed. That was the difference between python2 and python3 calls.
(cherry picked from commit
|
||
---|---|---|
.. | ||
bash_completion | ||
clean_dvi.py | ||
CMakeLists.txt | ||
convert_pdf.py | ||
convertDefault.py | ||
csv2lyx.py | ||
ext_copy.py | ||
fen2ascii.py | ||
fig2pdftex.py | ||
fig2pstex.py | ||
fig_copy.py | ||
gnuplot2pdf.py | ||
html2latexwrapper.py | ||
include_bib.py | ||
layout2layout.py | ||
legacy_lyxpreview2ppm.py | ||
listerrors | ||
lyxknitr.R | ||
lyxpak.py | ||
lyxpreview2bitmap.py | ||
lyxpreview_tools.py | ||
lyxstangle.R | ||
lyxsweave.R | ||
prefs2prefs_lfuns.py | ||
prefs2prefs_prefs.py | ||
prefs2prefs.py | ||
prefTest.pl.in | ||
prefTest.pm | ||
svg2pdftex.py | ||
svg2pstex.py | ||
tex_copy.py | ||
TeXFiles.py |