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<[email protected]> wrote:
From: e-letter<[email protected]>
Subject: Re: [libreoffice-users] deleting hard returns
To: [email protected]
Date: Monday, 28 November, 2011, 10:43
On 28/11/2011, poemblaze<[email protected]>
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: [email protected]
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
[email protected]
--
For unsubscribe instructions e-mail to: [email protected]
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