Ask Your Question

Can I put a hard return in a heading using outline numbering?

asked 2018-06-17 18:32:33 +0100

Chappy gravatar image

And if so how- what code would I insert in the Outline Numbering/Numbering/Separator/Before field, assuming that is how I'd do it?

I'm preparing my LO Writer doc to export it to Scrivener and trying to automate the process. They require a hard return and special characters, of your choosing, in order to import and split your word processor doc into smaller more manageable files (which it uses for editing large works). It splits your imported doc everywhere it sees the special characters, then deletes the line with the characters, and uses the first words of the following line/section as that new file's title.

(I have a 1000 page doc and it's getting clunky and unpredictable. I tried using a Master document a while back, but some feature I needed did not work using a master document, so I went back to a single file. Now I am forced to go to Scrivener.)

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2018-06-17 18:41:00 +0100

RGB-es gravatar image

updated 2018-06-17 20:24:48 +0100

You'll be able to use a line break as "separator, after" from version 6.1 (now on beta release).


Not sure I understand what you need, but maybe you can use Regular Expressions.

First, open the full Search&Replace tool (Ctrl H) → More options → Search for styles → select the style you use for your headings (for example, Heading 1) → Find all

Now check "selection only", uncheck the search for styles and check "regular expressions".

On search box, type ^.

On the replace box type:

  • if you just need to add a line break, \n &

  • If you need to add some fixed characters XYZ before the line break, XYZ\n &

Replace all.

That's it.

edit flag offensive delete link more


I need a couple of characters and then the line break before the title, plus I need to move on it now. Thanks for the quick response. I will just manually enter the breaks and characters. I was being lazy, sounds like it may not be possible.

Thanks again

Chappy gravatar imageChappy ( 2018-06-17 19:59:34 +0100 )edit

Maybe you can use some RegEx magic. See my edited answer.

RGB-es gravatar imageRGB-es ( 2018-06-17 20:23:38 +0100 )edit

answered 2018-06-26 12:56:45 +0100

Chappy gravatar image

Thanks, RGB, it turns out the scrivner split import (and related hard returns) was the least of my import problems for this document. Outlines are not imported properly at all, and I have a lot of them. My son is working on an import script. He says he'll share it when it is done.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-06-17 18:32:33 +0100

Seen: 47 times

Last updated: Jun 26 '18