rnkn / fountain-mode

Emacs major mode for screenwriting in Fountain plain-text markup
https://fountain-mode.org
GNU General Public License v3.0
391 stars 16 forks source link

fountain-pagination-update never finishes with a certain set of lines #150

Closed cdmojoli closed 1 month ago

cdmojoli commented 1 month ago

The following fragment, whose first line is empty, causes fountain-pagination-update to never exit.


ANY
Sueldos mínimos. Redondeando. *doscientos*.

Minimal changes in the dialogue line makes it work. Obviously hitting some corner case.

rnkn commented 1 month ago

Hi,

Thanks for reporting this. Looks like it's a problem with fountain-goto-page-break-point (which is unfortunately a rather large function). Leave it with me.

rnkn commented 1 month ago

Quite an edge case. It was because the break point fell on the punctuation. I think this is fixed with f3e821797beecc73cc16e81bfcbbe126581359ec which is on MELPA now. Let me know if you have any more problems.