eprovst / wrap

A Fountain export tool with some extras...
GNU General Public License v3.0
62 stars 8 forks source link

Any element following a note element will be parsed as action #48

Closed rnkn closed 3 years ago

rnkn commented 3 years ago

Describe the bug

It appears that any element following a note element will be parsed and exported as an action element.

To Reproduce Steps to reproduce the behavior:

$ cat > mwe.fountain
Bruce browses Amazon for new socks.

[[ Bruce needs to be sympathetic ]]

INT. BATCAVE -- DAY

ALFED
Tea sir?

[[ something noteworthy indeed ]]

BRUCE
Bring me the bat tea.

[[ emphasise Bruce does not drink tea made from bats ]]

CUT TO:

$ wrap pdf < mwe.fountain > mwe.pdf

Expected behavior

Our elements should be:

  1. action
  2. scene heading
  3. character
  4. dialogue
  5. character
  6. dialogue
  7. transition

...but the scene heading, Bruce's dialogue and the transition elements all appear parsed as action.

Screenshots

Screen Shot 2021-04-13 at 8 28 12 pm

Version

eprovst commented 3 years ago

Note that the last line was in fact interpreted correctly if there was no empty line behind it. :slightly_smiling_face: However, I think it is sensible to ignore that rule at the end of the file... Bruce should however be detected as a character instead of an action.

eprovst commented 3 years ago

There was quite a bit wrong with independent notes, I hope I got most of it as of the latest commit.

rnkn commented 3 years ago

Thanks! Very impressive and very fast!