YE <y...@ego.team> writes: >> May you please explain why missing newline is a problem? > > It's not necessarily a problem, since HTML parser implementations are > permissive. Still, a couple of arguments for adding it by default: > > 1. diff tools output "\ No newline at end of file" message when a > newline is missing. Supposedly, it's not optimal for default behavior.
IMHO, I see no problem with that message. > 2. POSIX.1-2017 states: > "3.206 Line > A sequence of zero or more non- <newline> characters plus a terminating > <newline> character." Does POSIX has anything to do with HTML? Were you to show us HTML standard, it would be more convincing. > 3. Ending a line of text with a particular identifier is rather a > canonical approach. Not ending is also not uncommon though. And causes no harm (no bug reports during all the >10 years when ox-html is a thing). -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>