From 32cbc59ec63e2bbf21c8e58d1cec5b9f890999fa Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Sun, 20 Feb 2011 13:20:55 +0000 Subject: [PATCH] Fix #9071: Author listing does not show names with double quotes (assuming I understand the report) --- src/calibre/gui2/tag_view.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/tag_view.py b/src/calibre/gui2/tag_view.py index c2b0e4638b..3af3271921 100644 --- a/src/calibre/gui2/tag_view.py +++ b/src/calibre/gui2/tag_view.py @@ -1096,7 +1096,8 @@ class TagsModel(QAbstractItemModel): # {{{ if tag in nodes_seen: continue nodes_seen.add(tag) - ans.append('%s%s:"=%s"'%(prefix, category, tag.name)) + ans.append('%s%s:"=%s"'%(prefix, category, + tag.name.replace(r'"', r'\"'))) return ans def find_item_node(self, key, txt, start_path):