mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-02 01:56:17 +01:00
Do not auto replace named entities when committing data from editors as it can be confusing, changing what is in the container compared to what is on screen
This commit is contained in:
parent
2d414ecba8
commit
b7efcea021
1 changed files with 0 additions and 3 deletions
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
from PyQt4.Qt import QMainWindow, Qt, QApplication, pyqtSignal
|
||||
|
||||
from calibre import xml_replace_entities
|
||||
from calibre.gui2 import error_dialog
|
||||
from calibre.gui2.tweak_book import actions, current_container
|
||||
from calibre.gui2.tweak_book.editor.text import TextEdit
|
||||
|
|
@ -60,8 +59,6 @@ def number_of_lines(self):
|
|||
def data(self):
|
||||
def fget(self):
|
||||
ans = self.get_raw_data()
|
||||
if self.syntax == 'html':
|
||||
ans = xml_replace_entities(ans)
|
||||
return ans.encode('utf-8')
|
||||
def fset(self, val):
|
||||
self.editor.load_text(val, syntax=self.syntax)
|
||||
|
|
|
|||
Loading…
Reference in a new issue