diff --git a/lib/lyx2lyx/lyx_2_0.py b/lib/lyx2lyx/lyx_2_0.py index b12c853217..54a2325b60 100644 --- a/lib/lyx2lyx/lyx_2_0.py +++ b/lib/lyx2lyx/lyx_2_0.py @@ -1175,9 +1175,7 @@ def revert_notefontcolor(document): ['% Commands inserted by lyx2lyx to set the font color', '% for greyed-out notes', '\\@ifundefined{definecolor}{\\usepackage{color}}{}' - '\\definecolor{note_fontcolor}{rgb}{' - + str(red) + ', ' + str(green) - + ', ' + str(blue) + '}', + '\\definecolor{note_fontcolor}{rgb}{%s,%s,%s}' % (red, green, blue), '\\renewenvironment{lyxgreyedout}', ' {\\textcolor{note_fontcolor}\\bgroup}{\\egroup}']) @@ -1218,8 +1216,7 @@ def revert_fontcolor(document): insert_to_preamble(0, document, ['% Commands inserted by lyx2lyx to set the font color', '\\@ifundefined{definecolor}{\\usepackage{color}}{}', - '\\definecolor{document_fontcolor}{rgb}{' - + str(red) + ', ' + str(green) + ', ' + str(blue) + '}', + '\\definecolor{document_fontcolor}{rgb}{%s,%s,%s}' % (red, green, blue), '\\color{document_fontcolor}'])