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

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 close merge delete

Sort by » oldest newest most voted

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

Edit:

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.

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

( 2018-06-17 19:59:34 +0200 )edit

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

( 2018-06-17 20:23:38 +0200 )edit

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.

more