Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On 11/28/2011 07:37 AM, Tom Davies wrote:
Hi :)

I'm surprised there doesn't seem to be an easier way to do find&replace for the paragraph mark!

A text editor is likely to remove all the formatting.  One way around might be to open the file as 
a compressed folder.

It's important to make a back-up copy of the file before starting to play around with this sort of 
thing!  (Just copy&paste the file into the same folder it's already in)

If you saved in docX or Odt then you can open the file with an archive manager or just rename the file-ending 
from .odt to .zip.  Then use the text-editor to edit the file "contents.xml".  I don't know how 
radically you can play around with that file so do a quick test before spending too much time on it.

Many text-editors such as SciTe, gedit, kate and so on allow you to view text as html/css, mxl.  Often either 
in the View menu or on the status-bar at the bottom.  Look for where it says "Plain text" and click 
on that.  The text-editor then cleverly works out which parts of the text are coding and colours it = colour 
coding the xml-coding!

Sorry i couldn't find a more straight-forwards answer!
Apols and regards from
Tom :)
I think the problem is that in xml or html you can enter a CR in the <p></p> tag that is ignored when displaying xml/html by a browser to make the text easier to read while editing. The CR may cause other programs to display the text incorrectly because they assume the CR is an editing command that must be obeyed. Xml/html have a tag for inserting a CR (<br />).


--- On Mon, 28/11/11, e-letter<inpost@gmail.com>  wrote:

From: e-letter<inpost@gmail.com>
Subject: Re: [libreoffice-users] deleting hard returns
To: users@global.libreoffice.org
Date: Monday, 28 November, 2011, 10:43
On 28/11/2011, poemblaze<mattq1966@gmail.com>
wrote:
Help! I am wanting to delete hard returns that were
placed at the end of
every line of a large document. All I've seen is how
to delete a paragraph
(hard) return in a blank paragraph. I'd also like to
convert hard returns to
soft returns in a couple places. That is the opposite
action of what I've
seen explained elsewhere. Any help would be
appreciated.
How do you delete a paragraph in a blank paragraph???

Suggest you learn about regular expressions. You could copy
your text
into a text editor (everyone has a personal favourite:
jedit).
Standard syntax to remove new lines is:

\n

within any standard 'find and replace' dialogue window in
your text
editor. The syntax for regular expressions may not be as
extensive in
LO, so read the manual ('list of regular expressions'). Not
sure what
you mean by "soft returns" (new line?).

--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived
and cannot be deleted



--
Jay Lozier
jslozier@gmail.com


--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.