[Solved] Copy and Paste spacing problem

Discuss the word processor
Post Reply
XxRadxX
Posts: 2
Joined: Tue Jan 08, 2008 8:50 am

[Solved] Copy and Paste spacing problem

Post by XxRadxX »

I have been trying very hard to solve this problem, and I am not sure exactly what to call it. So I will simply try to explain it. When I copy and paste text from documents that have odd spacing it makes it very hard to work with. For example, I copy and paste a paragraph from a document that is formatted like this:

Yet counterfeiting pharmaceuticals
usually carries far lower penalties than
producing and selling narcotics—and it is
becoming just as lucrative and is therefore
a booming business. The extent of
the problem is shocking: counterfeit drugs
manufactured by South American narcotics
gangs or unregistered chemical
works in China have infiltrated legitimate
supply chains and ended up in pharmacies,
clinics, and hospitals all over the
world. Even CVS and Rite Aid have
been fooled.9


But I need the text to go all the way to the right side of the page so that it will take up less pages. So I want it to look like this:

Yet counterfeiting pharmaceuticals usually carries far lower penalties than producing and selling narcotics—and it is becoming just as lucrative and is therefore a booming business. The extent of the problem is shocking: counterfeit drugs manufactured by South American narcotics gangs or unregistered chemical works in China have infiltrated legitimate supply chains and ended up in pharmacies, clinics, and hospitals all over the world. Even CVS and Rite Aid have been fooled.9

The only way that I have been able to do this is to manually delete the spacing line by line so that I can condense it. But I have a lot of documents that I need to do this to and it would save me an incredible amount of time if there is a way to fix this without doing each line manually. Thank you for your time and your help.
Last edited by XxRadxX on Wed Jan 09, 2008 3:46 am, edited 1 time in total.
User avatar
Hagar Delest
Moderator
Posts: 33633
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Copy and Paste spacing issue

Post by Hagar Delest »

See that wonderful macro : Convert ASCII text by eliminating extra paragraph breaks.

Thanks to add '[Solved]' in your first post title (edit button) if your issue has been fixed.
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE 7 Gigi) and 25.2 portable on Windows 11.
User avatar
foxcole
Volunteer
Posts: 1507
Joined: Mon Oct 08, 2007 1:31 am
Location: Minneapolis, Minnesota

Re: Copy and Paste spacing issue

Post by foxcole »

If HAgar's link doesn't help, try this:
http://wiki.services.openoffice.org/wik ... _in_Writer

You'll need to view non-printing characters in order to know what kind of break is at the end of each line. It will have either a line break or a paragraph break, but you'll have to know which one you're working with in order to choose the right solution.
Cheers!
---Fox

OOo 3.2.0 Portable, Windows 7 Home Premium 64-bit
XxRadxX
Posts: 2
Joined: Tue Jan 08, 2008 8:50 am

Re: Copy and Paste spacing issue

Post by XxRadxX »

Thank you both so much for your help. I will change the title to reflect the solved problem. Thanks again!
Post Reply