'Reimplement QPlainTextEdit\'s method to fix the following issue:
on Windows, pasted text has only \'LF\' EOL chars even if the original
text has \'CRLF\' EOL chars'

@Slot()
def paste(self):

    clipboard = QApplication.clipboard()
    text = to_text_string(clipboard.text())
    if (len(text.splitlines()) > 1):
        eol_chars = self.get_line_separator()
        clipboard.setText(eol_chars.join((text + eol_chars).splitlines()))
    TextEditBaseWidget.paste(self)
