mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 01:33:30 +02:00
...
This commit is contained in:
parent
67a168edae
commit
2dff34fab4
1 changed files with 3 additions and 3 deletions
|
|
@ -32,10 +32,10 @@
|
|||
|
||||
def get_highlighter(syntax):
|
||||
try:
|
||||
ans = importlib.import_module('calibre.gui2.tweak_book.editor.syntax.' + syntax).Highlighter
|
||||
return importlib.import_module('calibre.gui2.tweak_book.editor.syntax.' + syntax).Highlighter
|
||||
except (ImportError, AttributeError):
|
||||
ans = SyntaxHighlighter
|
||||
return ans
|
||||
pass
|
||||
return SyntaxHighlighter
|
||||
|
||||
def get_smarts(syntax):
|
||||
smartsname = {'xml':'html'}.get(syntax, syntax)
|
||||
|
|
|
|||
Loading…
Reference in a new issue