It's similar problem Copy and Paste From PDF to Emacs as Plain Text When I copy text from pdf and yank to org mode I have to run manually unfill-paragraph
function to remove unnecessary newlines & spaces. How I can automate the process?
I think condition would look like this -> If text is copied from pdf on yank run unfill-paragraph
.