From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 SOlQGf8FI2Uc7QAAG6o9tA:P1 (envelope-from ) for ; Sun, 08 Oct 2023 21:41:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SOlQGf8FI2Uc7QAAG6o9tA (envelope-from ) for ; Sun, 08 Oct 2023 21:41:51 +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 883B06335F for ; Sun, 8 Oct 2023 21:41:50 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ego.team header.s=key1 header.b="nMOyH0/P"; dmarc=pass (policy=quarantine) header.from=ego.team; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696794111; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=JOyTu6uqu31VnJnlYZDllFkXJAgPSSPhLA856auoLcE=; b=f6yYZlhDd7IbwdrQOAPo15vEKaMQleXrYX3nuvkdJXrVj/Bbzh+R6c0yJkIQsuZQwKiDqc Cr5F3gI8GhQUeHT/BvkS7hwe4+NCSDvD+3SRtS7BgB7hmSczWLoGq4vUt/0fHAyo3p0fOu Bx0xr0KzQs0W7rpDZXJ7OejWxwQ/esfCN7Q52OsD7gpxi+K5wNX55R7MEyo7X/mFyjoRXR ovpWfJbmzH190xAIxBAYd4C+nd8lwB96sLfajtCAoSmtfbz6a7fD3ia9fAtPNRA8PYsOlT rCUwf6znq/cdrpMZlFtcSCC8uQe5SyGbYkJ2ryaHlIxIqRgmwAxXSGVo+VhgPQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ego.team header.s=key1 header.b="nMOyH0/P"; dmarc=pass (policy=quarantine) header.from=ego.team; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696794111; a=rsa-sha256; cv=none; b=jyBWAYtOQta4j5HeU5ByUhr/q7NJzsA1w9fzRrf0BeaYZh2yB/6Vgrt4wrz6fO1QuWvxHV YK2N0QKPEDlNyK+7lMCA00KO9+TGxQCQ/31+yPZOVvddiKO42Xjd5AxSGHzvO+LfHR4WUY iGzVtsedBD8/krTOwJ/drPQ58OinsMEd3x+ZcrlsiqXexGPj8JwYeg1nEGVR2lj43B7c5A k0hMDcfAvsIAwj9bNhGr8gOhiIsGWzJAA8sSJCy7ih90COd2qOgiw5BBjCSe9LvR9T7MRV ecYhZrVlo1MahjrHMkFOTLjqWi/i3XF7Oib1Zz8SkH2HPDuHfbZewJdIyIy1Ng== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpZeK-0003w9-1R; Sun, 08 Oct 2023 15:41:12 -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 1qpZeI-0003vX-FF for emacs-orgmode@gnu.org; Sun, 08 Oct 2023 15:41:10 -0400 Received: from out-202.mta1.migadu.com ([2001:41d0:203:375::ca]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qpZeF-0002KU-UU for emacs-orgmode@gnu.org; Sun, 08 Oct 2023 15:41:10 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ego.team; s=key1; t=1696794060; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to; bh=JOyTu6uqu31VnJnlYZDllFkXJAgPSSPhLA856auoLcE=; b=nMOyH0/PYBR5PifP1a4JpNMmwZf/IwMa93rvyPLKGnsd9WO8J8IlM+eer7ppMhepy7ZmO5 fUyMJn/Cz7hPe8zUQcVujqB1GjdchEm9gDGOKPuvEWzHOSFoKl9BzWqCypjjGaMfIwSEee PEJy5J5Jkj/wGCIwUQmvS1kGkU0hoGE= From: YE To: Ihor Radchenko Cc: yet@ego.team, 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: <877cny25x4.fsf@localhost> (message from Ihor Radchenko on Sat, 07 Oct 2023 08:27:51 +0000) Date: Sun, 08 Oct 2023 22:40:56 +0300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:41d0:203:375::ca; envelope-from=yet@ego.team; helo=out-202.mta1.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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: , Reply-To: YE 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: 883B06335F X-Spam-Score: -3.10 X-Migadu-Spam-Score: -3.10 X-Migadu-Scanner: mx1.migadu.com X-TUID: twbGSddObBJP > >> 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.