From c0c435712c9b14246d4bed773feacf643c0e4597 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 30 Jul 2012 13:28:30 +0530 Subject: [PATCH] ... --- src/calibre/gui2/dnd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/dnd.py b/src/calibre/gui2/dnd.py index 9f8824ef23..c474fed537 100644 --- a/src/calibre/gui2/dnd.py +++ b/src/calibre/gui2/dnd.py @@ -135,7 +135,8 @@ def dnd_has_extension(md, extensions): prints('Debugging DND event') for f in md.formats(): f = unicode(f) - prints(f, repr(data_as_string(f, md))[:300], '\n') + raw = data_as_string(f, md) + prints(f, len(raw), repr(raw[:300]), '\n') print () if has_firefox_ext(md, extensions): return True