I frequently copy snippets of SQL code from a OneNote page and then paste into a server window or Notepad. The pasted text always contains an extra blank line above the next to last line.
OneNote source:
select table_name
from all_tables
where owner='MISC'
order by 1;
Notepad after paste:
---
select table_name
from all_tables
where owner='MISC'
<blank line after paste>
order by 1;
---
I tried to keep an extra blank line at the end of the source text, but the results are the same. Why does this happen and how can I stop it from pasting an extra line?
Thank you