A text pasted from non GN4 applications may contain inappropriate characters or text flow, wrong quotes and other problems such a multiple spaces, multiple returns, so the results may be not what you expected.
GN4 has a tool to clean the pasted text of inappropriate characters and set the correct quotes. You can call it from the Edit menu (Edit > Find > Clean Text and Set Quotes).
Note: when you paste a text from a PDF, it may result with a broken flow, i.e. every line became a single paragraph. This tool cannot fix that problem, as it is not possible to know where the original paragraphs were.To fix that, see Get rid of extra paragraphs.
If there's a highlighted block, it works on it, otherwise, it works on all text.
What get's cleaned?
•Multiple returns are replaced with a single return.
•Multiple space are replaced with a single space.
•Every paragraph starts with three spaces.
•All inline rules created by --- or === or ____ are removed.
•Double hyphens (--) are replaced by medium dash (chr 150).
•Two consecutive single quotes are replaced by a double quote.
•Removed character > (chr 62) from pasted mails.
Note
The script name is CleanText.
See also