Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Contact info spills off title page #30

Closed
kdent opened this issue Nov 27, 2018 · 4 comments
Closed

Contact info spills off title page #30

kdent opened this issue Nov 27, 2018 · 4 comments

Comments

@kdent
Copy link

kdent commented Nov 27, 2018

Description
On my title page, I have the following:

Title: Keeping Pace
Author: Kyle Dent
Draft date: December 2018
Contact:
    address line 1
    address line 2
    phone
    email address

The contact is not added to the title page.

If I move 'address line 1' up to the same line as the Contact: key, that one line is printed on the title page and the rest of the contact info is printed at the top of the next page.

Title: Keeping Pace
Author: Kyle Dent
Draft date: December 2018
Contact: address line 1
    address line 2
    phone
    email address

Expected behavior

I would expect all of the contact info to be printed at the bottom of the title page.

Screenshot

screen shot 2018-11-26 at 4 10 49 pm

Version

  • Wrap v0.2.1 on Darwin
  • OS: macOS High Sierra

Thanks for a great tool!

@eprovst
Copy link
Owner

eprovst commented Nov 27, 2018

Hey @kdent,

Please see: https://fountain.io/syntax#section-titlepage. A multi line value can't start on the same line as the key, so Wrap assumes that adress line 2 etc. in the second case are meant as action text. So what you are seeing is expected behaviour. 🙂

Well, actually it is undefined behaviour as a title page should end with two newlines. However Wrap assumes that once there is an invalid line the title page ended and the script begins. Wrap does this, instead of printing an error message, as this is the only case in the entire specification that something is undefined.

@eprovst eprovst closed this as completed Nov 27, 2018
@eprovst
Copy link
Owner

eprovst commented Nov 29, 2018

I'm sorry I seem to have missed a part of your report:

[In the first case] The contact is not added to the title page.

This is unexpected as this snippet should work, and does work in my testing...

@eprovst eprovst reopened this Nov 29, 2018
@kdent
Copy link
Author

kdent commented Nov 29, 2018

I discovered that if there are exactly two newlines separating the title page info from the body of the script, it works fine. If there are three or more, then the contact info is dropped from the PDF output.

@eprovst
Copy link
Owner

eprovst commented Nov 29, 2018

This is now fixed in the current nightly (see the _nightly builds in the current release). 🙂

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants