OS: Debian Bookworm (aka Testing).
LO: 7.4.0.2 (Installed from Debian repository as 1:7.4.0_rc2-3)
Background:
I am using LO to write screenplays (I’m using that term to avoid “scripts” which is highly ambiguous in a computer context, “character” in the following means naming the person who will speak). Screenplays have highly prescriptive formatting rules, e.g. dialogue starts 2.5" from left, character names start 3.7" from left and have a blank line above them, scene headers are at the left margin and have blank lines before and after.
I really want to avoid the error prone process of manually typing blank lines & setting margins so I am using custom styles to control the layout, I have built the margins and spacing rules (Above paragraph/below paragraph) into these styles. When I want a character, I select the character style, a dialogue: dialogue style, action: action style, …
Problem: Scene headers are preceded and followed by a blank line. Character names are preceded by a blank line. When the first thing in a scene is a character I get spacing from both styles, giving twice the spacing I am required to have.
I do have a work-around, additional styles that lack the vertical spacing, for example, Character has an alternate version Character_AS (After Scene). Having to manually select these is error prone, so I am already considering writing a little python script to fix the styles, but before doing that, is there a proper way to get rid of those double spaces?
Thank you