'Paste windows clipboard as multiline code.
Removes any empty lines in the code'

def paste_mulitline_code(self, e):

    reg = re.compile('\r?\n')
    if self.enable_win32_clipboard:
        txt = clipboard.get_clipboard_text_and_convert(False)
        t = reg.split(txt)
        t = [row for row in t if (row.strip() != '')]
        if (t != ['']):
            self.insert_text(t[0])
            self.add_history(self.l_buffer.copy())
            self.paste_line_buffer = t[1:]
            log(('multi:    %s' % self.paste_line_buffer))
            return True
        else:
            return False
