longform icon indicating copy to clipboard operation
longform copied to clipboard

Compile Step Request: Normalize Text

Open pdworkman opened this issue 3 years ago • 3 comments

If you have a scene that does not end with a paragraph break, compile process needs to add a paragraph break for the next scene header to be formatted properly.

Screen Shot 2022-01-24 at 8 33 09 PM

Screen Shot 2022-01-24 at 8 34 39 PM

pdworkman avatar Jan 25 '22 03:01 pdworkman

I think this might be a step instead....theoretically a person might prefer to not have line breaks at the end of files, and would use that behavior in a custom step or similar, so this may be better as as dedicated step a person can opt into instead of hidden behavior that inserts newlines.

kevboh avatar Jan 25 '22 13:01 kevboh

The problem is that most of my files end with a line break, but some of them don't (not intentional behaviour, just chance.)

So while most of them compile properly with the settings I have selected, three scenes out of 68 don't have headings because the header line is appended to the end of the last line of the previous scene. And therefore when I drop them into Vellum for final formatting, there will be no chapter break there either.

Now I know to look for this and troubleshoot it, but for someone who is not looking for it, they may end up with missing chapter breaks and weird formatting without realizing it or knowing why it happened.

I've tried inserting \ at the beginning of the prepend title step, but that doesn't work. I guess I need an "insert at end of scene" step.

pdworkman avatar Jan 25 '22 16:01 pdworkman

I think what I want to do here is add a "normalize text" step, which can do stuff like add a newline at the end of a scene only if it doesn't have one, etc.

kevboh avatar Feb 02 '22 14:02 kevboh