[Dropped] Replace <TD> New Line </TD> with TAB

Discuss the word processor
Post Reply
JohnCox
Posts: 4
Joined: Tue Feb 23, 2021 11:23 am

[Dropped] Replace <TD> New Line </TD> with TAB

Post by JohnCox »

I have an HTML document which I wan't to import into an OO table. I am trying to replace "<TD> New Line </TD>" with TAB.
It doesn't work. Anyone got any ideas? OO 4.1.14, Win 10.

 Edit: Split from [Solved] Search carriage return and replace with tab because your problem is different. If you had the same problem you could use the same solution. Please do not post in another's topic unless you are helping to solve their problem for them. Hint: you are more likely to get your problem solved quickly if you attach a document (not a picture) to this topic.
-- MrProgrammer, forum moderator  
Last edited by MrProgrammer on Sat Dec 16, 2023 5:22 pm, edited 2 times in total.
Reason: Dropped: No response from JohnCox
Open Office 4.1.9 on Win 10
FJCC
Moderator
Posts: 9625
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Replace <TD> NewLine </TD> with TAB

Post by FJCC »

If I search for

Code: Select all

<TD> New Line </TD>
and replace with

Code: Select all

\t
and, under More Options, I select Regular Expressions, the text is replace with a tab when I click Replace All. What have you tried?
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Mountaineer
Posts: 336
Joined: Sun Sep 06, 2020 8:27 am

Re: Replace <TD> NewLine </TD> with TAB

Post by Mountaineer »

JohnCox wrote: Sat Dec 09, 2023 5:55 pm ... HTML document which I wan't to import into an OO table. ...
Usually I try copy/paste first, but nit from my html-editor or notepad, but from the browser. This should create a table in Writer.

Second try would be to import to Calc first.

When working in code I guess you don't want to replace

Code: Select all

<TD> New Line </TD>
but

Code: Select all

</TD> ~a New Line~<TD>
with a tab. This can work, if this is "only" a new line , but usually you will see the pilcrow, wich ends a paragraph in writer (I hope you enabled showing formatting marks). Writers search does not span over several paragraphs. So you may need to use the extension AltSearch to Search-around this limit...
LibreOffice 7.6 on Windows 10pro and other Versions parallel
Post Reply