piersdeseilligny / betterfountain

A screenwriting app integrated into visual studio code
https://marketplace.visualstudio.com/items?itemName=piersdeseilligny.betterfountain
MIT License
360 stars 54 forks source link

"Forced" blank lines are not displayed in output #168

Open JamiesonC opened 2 years ago

JamiesonC commented 2 years ago

The Fountain syntax allows for "forced" blank lines within a continuous formatted dialogue block. The spec states that the author should add two blank spaces on the blank line to ensure that it is treated as a continuation of the previous block. (See https://fountain.io/syntax#section-br, in particular the example at the bottom of the "Line Breaks" section.)

Better Fountain supports the use of two blank spaces to force the continuation of a block, but it does not actually include the blank line in the output. This appears to run counter the to spec.

Better_Fountain_line_break_bug

piersdeseilligny commented 2 years ago

Thanks for reporting this! Which version of betterfountain are you using? It's bizarre because I can't recreate this issue:

Both the PDF... image ...and the live preview: image ...render the expected output.

The exact text I used was:

DEALER
Ten.
Four.
Dealer gets a seven.

Hit or stand sir?

MONKEY
Dude, I'm a monkey.
JamiesonC commented 2 years ago

Thanks for reporting this! Which version of betterfountain are you using? It's bizarre because I can't recreate this issue:

Both the PDF and the live preview render the expected output.

I'm using Better Fountain 1.10.0 in VSCodium 1.69.1, running under Ubuntu 20.04.4 LTS (Linux x64 5.15.0-41-generic).

Is it possible that this issue has anything to do with the difference in how line breaks are represented in *Nix (LF) versus Windows (CRLF)?

image

image

image

JamiesonC commented 2 years ago

This change below seems to address the issue in my environment; I observed correct output of blank dialogue lines in the preview window, PDF export, and HTML export. However, I don't know if the change causes adverse effects in other environments or contexts.

Versus https://github.com/piersdeseilligny/betterfountain/commit/8add5a607ad0ad70911bd37f110e9fd0b6ad4683

image

streetyogurt commented 1 year ago

The Fountain syntax allows for "forced" blank lines within a continuous formatted dialogue block. The spec states that the author should add two blank spaces on the blank line to ensure that it is treated as a continuation of the previous block. (See https://fountain.io/syntax#section-br, in particular the example at the bottom of the "Line Breaks" section.)

Better Fountain supports the use of two blank spaces to force the continuation of a block, but it does not actually include the blank line in the output. This appears to run counter the to spec.

Better_Fountain_line_break_bug

I am experiencing the same issue as initially described by @JamiesonC I am using v1.11.0