| View previous topic :: View next topic |
| Author |
Message |
stevenvh General User

Joined: 28 Feb 2006 Posts: 6
|
Posted: Sat May 31, 2008 12:56 am Post subject: replacing linefeeds [solved] |
|
|
Hi,
all paragraphs in my document start with a space, which I want removed.
I thought I could search for "\n " (regular expressions selected), and replace it with "\n", but this doesn't work. Writer doesn't find "\n ", nor "\n[ ]", though it does find "\n", and I can see the space on the next line.
It does work when I select the linefeed+space in my document and click "replace", but only for the selected instance, not with "replace all". Which is pretty useless, because it's easier to just go to the space and delete it. Except that it's a 370 page document
Any suggestions?
TIA
Steven
OpenOffice.org 2.4.0
Windoze XP
Last edited by stevenvh on Sat May 31, 2008 1:52 am; edited 1 time in total |
|
| Back to top |
|
 |
floris_v Moderator


Joined: 12 Jul 2007 Posts: 4601 Location: Netherlands
|
Posted: Sat May 31, 2008 1:44 am Post subject: |
|
|
You should read the help on regular expressions that comes with the software. You cannot replace across paragraphs. You can find the first character of a paragraph though: "^ " will find the opening space.
If this solves your problem, please edit the first post of this thread (Edit button) and add [Solved] to the subject line. _________________ LibreOffice 3.6.3; OOo 3.4.1 on Windows Vista
Join the Official community forum - in several languages, including Nederlandstalig forum |
|
| Back to top |
|
 |
stevenvh General User

Joined: 28 Feb 2006 Posts: 6
|
Posted: Sat May 31, 2008 1:52 am Post subject: |
|
|
Thanks Floris,
I guess I was too much focussed on the "\n" thing, that I missed the "^".  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|