lmparppei / Beat

Beat - a simple and elegant screenwriting app for macOS
Other
175 stars 30 forks source link

Recoloring scenes from outline adds increasing number of spaces #81

Closed ftolsson closed 3 years ago

ftolsson commented 3 years ago

Here's a simple one to fix for once! :)

This affects your own outline as well as my plugin when I use Beat.setColorForScene:

When adding the [[COLOR: someValue]] note to a scene heading, Beat adds a [space] between the heading text and the "note". When removing and/or changing the value, it doesn't remove the space before adding a new one, which results in scene headings that appear either with an increasingly loooong distance to the color note, or (if sceneheadings are underlined) a really long superfluous underline.

This is in the edit window only, so purely cosmetic. But still.

lmparppei commented 3 years ago

Can't reproduce myself, but added a check if there's already (at least) one space after the heading.