QScintilla/Exporters/ExporterHTML.py

changeset 1112
8a7d1b9d18db
parent 945
8cd4d08fa9f6
child 1509
c0b5e693b0eb
equal deleted inserted replaced
1109:9552b5e16a07 1112:8a7d1b9d18db
10 # This code is a port of the C++ code found in SciTE 1.74 10 # This code is a port of the C++ code found in SciTE 1.74
11 # Original code: Copyright 1998-2006 by Neil Hodgson <neilh@scintilla.org> 11 # Original code: Copyright 1998-2006 by Neil Hodgson <neilh@scintilla.org>
12 12
13 import os 13 import os
14 14
15 from PyQt4.QtCore import * 15 from PyQt4.QtCore import Qt
16 from PyQt4.QtGui import * 16 from PyQt4.QtGui import QCursor, QFontInfo, QApplication
17 from PyQt4.Qsci import QsciScintilla 17 from PyQt4.Qsci import QsciScintilla
18 18
19 from E5Gui import E5MessageBox 19 from E5Gui import E5MessageBox
20 20
21 from .ExporterBase import ExporterBase 21 from .ExporterBase import ExporterBase
243 ts = tabSize - (column % tabSize) 243 ts = tabSize - (column % tabSize)
244 if wysiwyg: 244 if wysiwyg:
245 html += '''&nbsp;''' * ts 245 html += '''&nbsp;''' * ts
246 column += ts 246 column += ts
247 else: 247 else:
248 if tabs: 248 if useTabs:
249 html += '\t' 249 html += '\t'
250 column += 1 250 column += 1
251 else: 251 else:
252 html += ' ' * ts 252 html += ' ' * ts
253 column += ts 253 column += ts

eric ide

mercurial