This patch considers blank lines that come after the start of a fold as part of the fold itself. This was a major annoyance for me for many years and I am finally glad to have fixed it! :-)
Attached are two screencasts demonstrating the before & after of applying this patch.
Thanks for your consideration.