Replacing indents with tabs

Continuing the discussion from Writer: Replace Format, Find text by Indent:

I’m trying to copy a list of bookmark folders from Brave.
Saved to html
Opened in Writer
I selected all bookmarks using Find and Replace (Ctrl+H) > Paragraph Styles
deleted bookmarks leaving only folders and a lot of gaps

I’m trying to find a quick way to get rid of the gaps
I can’t copy and paste to Calc as the folders and subfolders are only indicated by being indented.

I tried using your suggestion to safe ad *.fodt but can’t seem to figure out how even to save as .fodt let alone then open it.

I could be barking up the wrong tree but your suggestion seems sensible and applicable.
Any tips please?

Are you trying to remove the empty paragraphs? If so the using Find and Replace (Ctrl+H):

  1. Select the text (not required if it is the only text, or you want to remove all empty paragraphs)
  2. Open Find & Replace
  3. In the dialogue:
    In Find enter ^$
    In Replace leave it blank
    under Options
    Tick Current selection only (if required)
    Tick Regular expressions
  4. Click Replace All

See List of Regular Expressions

Thanks. Beautiful. Much appreciated.

Simple now you say it but I’m still getting used to L.O.
That’s 90% of what I was trying to figure out along the way.

I am also interested in how I can copy and paste the list to a notes app so I’d still like to replace the indents with tabs or spaces.

In Word Shift (or Alt?) + select: hold-click and drag with mouse allows to select what text it is dragged across.

I could try dajare’s AltSearch suggestion but the save-to flat and open to find the indents replaced with plaintext spaces/tabs seems like a fairly clean way of getting a result I can throw to plain text, markdown, Writer or Calc.

Maybe you have a small sample of a dozen lines that you can share? Click the Upload icon (7th from left) to upload. You might need to zip it or add a .odt extension after the .htm extension otherwise you might not be allowed to upload it.

[Edit]
I tried exporting bookmarks from Firefox to HTML. To remove the indent, select everything (Ctrl+A) and click Format > Clear direct formatting (Ctrl+M)

Example: Bookmarks indents test.odt (13.4 KB)

Maybe there’s another way to get from HTML to .odt in the first place which wouldn’t be rendered as indent levels - or I could try a find and replace on the html code but this is an experiment which seems simple but is evading a straightforward method.