--- a/eric6/QScintilla/Exporters/ExporterHTML.py Mon Jan 04 15:59:40 2021 +0100 +++ b/eric6/QScintilla/Exporters/ExporterHTML.py Mon Jan 04 16:39:09 2021 +0100 @@ -174,7 +174,8 @@ font = lex.font(subs_start + subs_idx) colour = lex.color(subs_start + subs_idx) paper = lex.paper(subs_start + subs_idx) - html += '.S{0:d} {{\n'.format(subs_idx - subs_start) + html += '.S{0:d} {{\n'.format( + subs_idx - subs_start) if font.italic(): html += ' font-style: italic;\n' if font.bold():