[Solved] Search & Replace - Tabs and Paragraph marks

Discuss the word processor
Post Reply
MMHouston
Posts: 1
Joined: Wed Jan 16, 2013 4:47 pm

[Solved] Search & Replace - Tabs and Paragraph marks

Post by MMHouston »

I have imported a large test file that resulted in a series of line all ending with a paragraph mark. I know I can search for paragraph marks (\n) but I would also like to use tabs as replacements for two paragraph marks in series. What is the character code for tabs (\t?)?

Thanks for your help.
Last edited by MMHouston on Wed Jan 16, 2013 5:35 pm, edited 1 time in total.
OpenOffice 3.4 Windows 7 64 bit
User avatar
Hagar Delest
Moderator
Posts: 32665
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Search & Replace - Tabs and Paragraph marks

Post by Hagar Delest »

Hi and welcome to the forum!

See [Solved] Find and replace paragraph breaks.
You can try this macro also: Convert ASCII text files by deleting extra paragraph breaks.

And: [Tutorial] How to install a code snippet.

And yes, tab code is \t. Look at the AOO help file for the list of regular expressions with some samples.

Please add '[Solved]' at the beginning of your first post title (edit button) if your issue has been fixed.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
naprapath
Posts: 3
Joined: Fri Dec 25, 2015 2:42 am

Re: [Solved] Search & Replace - Tabs and Paragraph marks

Post by naprapath »

I have tried this, but it doesn't work. I keep getting the message: Search key not found!
Apache Open Office 4.1.2

Windows 8.1
naprapath
Posts: 3
Joined: Fri Dec 25, 2015 2:42 am

Re: [Solved] Search & Replace - Tabs and Paragraph marks

Post by naprapath »

Worked after I clicked 'regular expressions'.
Apache Open Office 4.1.2

Windows 8.1
Post Reply