QScintilla/Exporters/ExporterHTML.py

changeset 3034
7ce719013078
parent 3011
18292228c724
child 3039
8dd0165d805d
equal deleted inserted replaced
3033:58fe260e7469 3034:7ce719013078
121 121
122 html += '''<style type="text/css">\n''' 122 html += '''<style type="text/css">\n'''
123 if lex: 123 if lex:
124 istyle = 0 124 istyle = 0
125 while istyle <= QsciScintilla.STYLE_MAX: 125 while istyle <= QsciScintilla.STYLE_MAX:
126 if (istyle <= QsciScintilla.STYLE_DEFAULT or \ 126 if (istyle <= QsciScintilla.STYLE_DEFAULT or
127 istyle > QsciScintilla.STYLE_LASTPREDEFINED) and \ 127 istyle > QsciScintilla.STYLE_LASTPREDEFINED) and \
128 styleIsUsed[istyle]: 128 styleIsUsed[istyle]:
129 if lex.description(istyle) or \ 129 if lex.description(istyle) or \
130 istyle == QsciScintilla.STYLE_DEFAULT: 130 istyle == QsciScintilla.STYLE_DEFAULT:
131 font = lex.font(istyle) 131 font = lex.font(istyle)
405 E5MessageBox.critical( 405 E5MessageBox.critical(
406 self.editor, 406 self.editor,
407 self.trUtf8("Export source"), 407 self.trUtf8("Export source"),
408 self.trUtf8( 408 self.trUtf8(
409 """<p>The source could not be exported to""" 409 """<p>The source could not be exported to"""
410 """ <b>{0}</b>.</p><p>Reason: {1}</p>""")\ 410 """ <b>{0}</b>.</p><p>Reason: {1}</p>""")
411 .format(filename, str(err))) 411 .format(filename, str(err)))
412 finally: 412 finally:
413 QApplication.restoreOverrideCursor() 413 QApplication.restoreOverrideCursor()

eric ide

mercurial