mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
fix text not in english when checkbox is True
This commit is contained in:
parent
3e1a9ec3e7
commit
1e8b9a18fb
@ -141,7 +141,7 @@ class DocViewer(Dialog):
|
||||
|
||||
def get_doc(self, func):
|
||||
doc = func.doc if hasattr(func, 'doc') else ''
|
||||
return doc.raw_text if self.english_cb.isChecked() and hasattr(doc, 'raw_text') else doc
|
||||
return getattr(doc, 'formatted_english', doc) if self.english_cb.isChecked() else doc
|
||||
|
||||
def no_doc_string(self):
|
||||
if self.english_cb.isChecked():
|
||||
|
Loading…
x
Reference in New Issue
Block a user