I can't reproduce this. Could you give step-by-step instructions what you
are doing?
Did you try Edit > Paste special > Unformatted Code (or whatever it's
called, I have no English version working)
Nino
BTW: as such questions are better sent to users@global.libreoffice.org I'm
cc'ing the users' list