Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

vim textwidth=72 adds newlines that should not show up in rendered output (not just a vim issue) #54

Open
mw44118 opened this issue May 26, 2024 · 5 comments

Comments

@mw44118
Copy link

mw44118 commented May 26, 2024

I have a scene description in my .fountain file that looks like this:

Joe watches Maggie get up, leave the room, then come back carrying a
chair from his dining table in the other room.

In my case, my text editor (vim, but who cares, this is a bigger issue than just vim) is configured to add a newline after 72 characters.

I get output that looks like this (I'm using screenplain):

Joe watches Maggie get up, leave the room, then come back
carrying a
chair from his dining table in the other room.

But I want output that looks like this instead:

Joe watches Maggie get up, leave the room, then come back carrying a chair from his dining table in the other room.

What I want is that the wrapping should happen at the very end. Sorta like in HTML, line breaks get ignored usually. The line breaks are just because I don't like really long lines.

This might be a fanciful wish, but I wonder if it is even possible to have the parsing apps understand that some newlines should be discarded, but others should be respected.

Is there already a way to achieve what I want? In other words, can I split my lines at 72 characters, but have those newlines be ignored.

This might be a "eat my cake and have it too" thing, but I'm hoping that other folks at least understand what I'm hoping for.

@mw44118
Copy link
Author

mw44118 commented May 26, 2024

I have a rough idea of how to do this. Maybe treat newlines in some blocks different than others.

This is a dialog block, and the newlines here should persist / appear in the rendered output:

    DEALER
    Ten.
    Four.
    Dealer gets a seven. Hit or stand sir?

Meanwhile, in an action / scene description block, these newlines oughtta be ignored:

Joe watches Maggie get up, leave the room, then come back carrying a
chair from his dining table in the other room.

So, maybe the solution is to have the parsing code discard newlines in ACTION blocks only. Or, maybe, only preserve newlines when in dialog blocks.

@yorkshiremanII
Copy link

yorkshiremanII commented May 27, 2024 via email

@mw44118
Copy link
Author

mw44118 commented May 27, 2024

I think you get the issue! In short, I'm asking for something like... I wanna see text wrapped at 72 characters in vim, but when I render my fountain files, I want those wraps at 72 characters to be ignored.

I started reading the code in the screenplain project last night. Maybe I can add an option that does this, but not by default.

@yorkshiremanII
Copy link

yorkshiremanII commented May 27, 2024 via email

@shaedrich
Copy link

I'm not sure if that is a problem for the syntax itself and not more of a (v)implementation detail of the respective "editor" plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants