src/eric7/QScintilla/Exporters/ExporterHTML.py

branch
eric7
changeset 10928
46651e194fbe
parent 10496
f9925e08dbce
child 11090
f5f5f5803935
equal deleted inserted replaced
10927:ce599998be7d 10928:46651e194fbe
17 17
18 from PyQt6.Qsci import QsciScintilla 18 from PyQt6.Qsci import QsciScintilla
19 from PyQt6.QtGui import QFontInfo 19 from PyQt6.QtGui import QFontInfo
20 from PyQt6.QtWidgets import QInputDialog 20 from PyQt6.QtWidgets import QInputDialog
21 21
22 from eric7 import Preferences, Utilities 22 from eric7 import EricUtilities, Preferences
23 from eric7.EricGui.EricOverrideCursor import EricOverrideCursor 23 from eric7.EricGui.EricOverrideCursor import EricOverrideCursor
24 from eric7.EricWidgets import EricMessageBox 24 from eric7.EricWidgets import EricMessageBox
25 from eric7.UI.Previewers import MarkdownExtensions, PreviewerHTMLStyles 25 from eric7.UI.Previewers import MarkdownExtensions, PreviewerHTMLStyles
26 26
27 from .ExporterBase import ExporterBase 27 from .ExporterBase import ExporterBase
373 elif (utf8Ch[0] & 0xC0) == 0xC0: 373 elif (utf8Ch[0] & 0xC0) == 0xC0:
374 utf8Len = 2 374 utf8Len = 2
375 column -= 1 # will be incremented again later 375 column -= 1 # will be incremented again later
376 elif len(utf8Ch) == utf8Len: 376 elif len(utf8Ch) == utf8Len:
377 ch = utf8Ch.decode("utf8") 377 ch = utf8Ch.decode("utf8")
378 html += Utilities.html_encode(ch) 378 html += EricUtilities.html_encode(ch)
379 utf8Ch = b"" 379 utf8Ch = b""
380 utf8Len = 0 380 utf8Len = 0
381 else: 381 else:
382 column -= 1 # will be incremented again later 382 column -= 1 # will be incremented again later
383 else: 383 else:

eric ide

mercurial