From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Bug? Setting #+OPTIONS: title:nil Seems to Be Ignored in HTML Export. Date: Tue, 01 Aug 2017 10:41:32 +0000 Message-ID: References: <71359491574f233bd37d0804042fb701@wilkesley.net> <87ini7d3aj.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1a1e941d7ee70555aecb09" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcUcU-00056f-Kx for emacs-orgmode@gnu.org; Tue, 01 Aug 2017 06:41:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcUcT-0004tT-Gp for emacs-orgmode@gnu.org; Tue, 01 Aug 2017 06:41:46 -0400 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]:33458) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dcUcT-0004sy-9f for emacs-orgmode@gnu.org; Tue, 01 Aug 2017 06:41:45 -0400 Received: by mail-lf0-x233.google.com with SMTP id d17so5226749lfe.0 for ; Tue, 01 Aug 2017 03:41:45 -0700 (PDT) In-Reply-To: <87ini7d3aj.fsf@gmx.us> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Rasmus , emacs-org list --94eb2c1a1e941d7ee70555aecb09 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Aug 1, 2017, 5:52 AM Rasmus wrote: > > That is wrong IMO. Title is mandatory in at least HTML{4,5}. > > https://www.w3schools.com/tags/tag_title.asp Thanks, I was not aware of that. AFAIR Org already allows invalid HTML document to be produced when the > TITLE is empty, as it=E2=80=99s translated into an empty quote. > With the new patch, wouldn't the title, that was not intended to be shown, still show up in places like browser tabs and bookmarks? I have to yet try it. So I was going to suggest to set title tag to empty string "" or something generic like "HTML". I don't think I would use the title:nil option. But if one needs to hide the title, I think it should not leak out of the Org document. The right approach IMO is not printing the h1-title block, as in the attached patch. > That would be fine if that prevents the title from showing up in browser tabs, etc. (In general generating the title block should be moved to something like > =E2=80=98org-html-preamble-format=E2=80=99, though it probably shouldn=E2= =80=99t depend on the > language of the document...) > --=20 Kaushal Modi --94eb2c1a1e941d7ee70555aecb09 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Aug 1, 2017, 5:52 AM Ra= smus <rasmus@gmx.us> wrote:
<= /div>

That is wrong IMO.=C2=A0 Title is mandatory in at least HTML{4,5}.

=C2=A0 =C2=A0 https://www.w3schools.com/tags/tag_title.= asp

Thanks, I was not aware of th= at.=C2=A0

AFAIR Org already allows invalid HTML document to be produced= when the
TITLE is empty, as it=E2=80=99s translated into an empty quote.

With the new patch, wouldn't the title, = that was not intended to be shown, still show up in places like browser tab= s and bookmarks? I have to yet try it.=C2=A0

So I = was going to suggest to set title tag to empty string "" or somet= hing generic like "HTML". I don't think I would use the title= :nil option. But if one needs to hide the title, I think it should not leak= out of the Org document.

The right appro= ach IMO is not printing the h1-title block, as in the
attached patch.

That would be fin= e if that prevents the title from showing up in browser tabs, etc.=C2=A0

(In general generating the title block should be moved to something like =E2=80=98org-html-preamble-format=E2=80=99, though it probably shouldn=E2= =80=99t depend on the
language of the document...)
--

Kaushal Modi

--94eb2c1a1e941d7ee70555aecb09--