From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id UJ8tONvjI2UQKwEAauVa8A:P1 (envelope-from ) for ; Mon, 09 Oct 2023 13:28:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UJ8tONvjI2UQKwEAauVa8A (envelope-from ) for ; Mon, 09 Oct 2023 13:28:28 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D5E625AB90 for ; Mon, 9 Oct 2023 13:28:27 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpoQJ-00067y-Gb; Mon, 09 Oct 2023 07:27:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qpoQH-00067e-Qk for emacs-orgmode@gnu.org; Mon, 09 Oct 2023 07:27:41 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qpoQE-0000Ho-91 for emacs-orgmode@gnu.org; Mon, 09 Oct 2023 07:27:40 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 401FC240101 for ; Mon, 9 Oct 2023 13:27:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696850856; bh=odWZigopW+DOBlGQrxiAMpbbd1DQHUOF/UXaJ9nmc7M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=RqiSdioJfnOHaW/Xx8gFPneYE9xYDszhghk8zn/UyzLaAf71O7umlIFTYK2QhxDqh UI4sJP1rTfXNNMLFqjGl6H/6mxuxH6NDgae7Pa5Dgx58C8NCxr/VR6K+e1hAbXfM2E 9Qr+0VxPiBIYIMwuEzguX8CrQd7RSnxZGte2UsmRn96pT35j3hc/MgrQnV1yRvi1dD CYjG3JF/Dv2WG4eiJEGLQDU9VOYlVhP2WI/erQzVbNft+g7bR1t+shPVuok3hFbgZZ G6GGR6E9vdk28ffJnL5Ljcl4DXCTB2LBrSs5iF8NyAsgHUgDk7Ovw1iL9/hlVKKXwK hlyS5t69n2nuQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S3xbC5HbVz6tsb; Mon, 9 Oct 2023 13:27:35 +0200 (CEST) From: Ihor Radchenko To: YE Cc: emacs-orgmode@gnu.org Subject: 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/)] In-Reply-To: References: Date: Mon, 09 Oct 2023 11:29:14 +0000 Message-ID: <878r8cm3ud.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: D5E625AB90 X-Spam-Score: -4.00 X-Migadu-Spam-Score: -4.00 X-Migadu-Scanner: mx1.migadu.com X-TUID: zsgWTLTUu2HZ YE 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- characters plus a terminating > 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 . Support Org development at , or support my work at