Re: [BUG] No newline at end of exported HTML file [9.6.6 (release_9.6.6 @ /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)]

2023-10-11 Thread YE
> Bruno Barbier  writes:

> The change seems to come from this commit:
>
>commit d7a55bbd537314d2776b082bd92a1a08b3edc84e
>Date:   Wed Sep 28 12:07:14 2022 +0800
>org-latex-export-to-latex: Do not suppress major modes in babel
>
Thank you for finding the culprit.

> Ihor Radchenko  writes:
> See the attached tentative patch.

Thanks, LGTM so far.



Re: [BUG] No newline at end of exported HTML file [9.6.6 (release_9.6.6 @ /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)]

2023-10-08 Thread YE
>
>> Exporting HTML file from Org-mode, f.i. with `org-html-export-to-html',
>> I expect to get a newline after the closing  tag, but it's not
>> added. I believe this used to work with previous versions of Org-mode.
>> Am I missing something?
>
> `org-html-template' never ever had a newline at the end of the generated
> html file.

Yes, I see that. It looks like there was something else that resulted in
a newline added at the end of the exported, including published, HTML
files (in previous Emacs versions).

> 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.

2. POSIX.1-2017 states:
"3.206 Line
A sequence of zero or more non-  characters plus a terminating
 character."

3. Ending a line of text with a particular identifier is rather a
canonical approach.




[BUG] No newline at end of exported HTML file [9.6.6 (release_9.6.6 @ /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)]

2023-10-06 Thread YE


Exporting HTML file from Org-mode, f.i. with `org-html-export-to-html',
I expect to get a newline after the closing  tag, but it's not
added. I believe this used to work with previous versions of Org-mode.
Am I missing something?

Thanks.

Emacs  : GNU Emacs 29.1 (build 2, aarch64-apple-darwin22.6.0, NS appkit-2299.70 
Version 13.5 (Build 22G74))
 of 2023-08-02
Package: Org mode version 9.6.6 (release_9.6.6 @ 
/Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)