Quote doublequote characters when copying records to clipboard

issue3972
review6341002
This commit is contained in:
Nicolas Évrard committed 2014-06-11 16:47:13 +02:00
1 parent 08eece83d6
commit 2636c2ea5b
1 file changed
+3 -1
+3 -1
View File
@@ -688,7 +688,9 @@ class ViewTree(View):
if not col.get_visible() or not col.name:
continue
widget = self.treeview.widgets[col.name]
values.append('"' + str(widget.get_textual_value(record)) + '"')
values.append('"'
+ str(widget.get_textual_value(record)).replace('"', '""')
+ '"')
data.append('\t'.join(values))
return