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: Mon, 31 Jul 2017 18:24:04 +0000 Message-ID: References: <71359491574f233bd37d0804042fb701@wilkesley.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045f740064584d0555a123b0" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcFMa-0003tS-G5 for emacs-orgmode@gnu.org; Mon, 31 Jul 2017 14:24:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcFMZ-0006RN-0S for emacs-orgmode@gnu.org; Mon, 31 Jul 2017 14:24:20 -0400 Received: from mail-lf0-x22b.google.com ([2a00:1450:4010:c07::22b]:33896) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dcFMY-0006O9-MG for emacs-orgmode@gnu.org; Mon, 31 Jul 2017 14:24:18 -0400 Received: by mail-lf0-x22b.google.com with SMTP id g25so113457037lfh.1 for ; Mon, 31 Jul 2017 11:24:16 -0700 (PDT) In-Reply-To: <71359491574f233bd37d0804042fb701@wilkesley.net> 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: lists@wilkesley.net, emacs-orgmode@gnu.org --f403045f740064584d0555a123b0 Content-Type: text/plain; charset="UTF-8" On Mon, Jul 31, 2017 at 1:37 PM wrote: > I don't know if this is intended behaviour or not. > > Save the following as setuop.org > > #+BEGIN_SRC > > :SETUP: > #+LANGUAGE: en > #+DRAWERS: SETUP NOTES PROPERTIES > #+OPTIONS: author:nil date:nil d:nil title:nil ':t tex:t > #+STARTUP: content indent > > :END: > > #+END_SRC > I haven't seen that kind of property-drawer like syntax for setupfile before (:SETUP: .. :END:).. But looks like that's just the way you represented in this email? > Now include setup.org in test.org > > #+BEGIN_SRC > > #+SETUPFILE: ./setup.org > #+TITLE: A Three Second Route. > * A Three Second Route. > Some text. > > > #+END_SRC > > Exporting as html result in: > > #+BEGIN_SRC html > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > > > > > A Three Second Route. > > #+END_SRC > > Note that TITLE is exported. > > Using org-master bb6e40b08655cc2f33bdf6f9 > I can recreate this issue when using the HTML backed, not when using the ascii backend. My example: == setup.org == #+OPTIONS: title:nil author:nil toc:nil ===== == example.org ===== #+SETUPFILE: ./setup.org #+TITLE: This Title Must Not Export * Heading 1 Some text. ===== C-c C-e t A (ascii export to buffer) gives: ===== 1 Heading 1 =========== Some text. ===== C-c C-e h H (html export to buffer) gives: ===== This Title Must Not Export == == -- Kaushal Modi --f403045f740064584d0555a123b0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Jul 31= , 2017 at 1:37 PM <lists@wilkesle= y.net> wrote:
I don't kn= ow if this is intended behaviour or not.

Save the following as setuop.org

#+BEGIN_SRC

:SETUP:
#+LANGUAGE:=C2=A0 en
#+DRAWERS: SETUP NOTES PROPERTIES
#+OPTIONS: author:nil date:nil d:nil title:nil ':t tex:t
#+STARTUP: content indent

:END:

#+END_SRC

I haven't seen that kind = of property-drawer like syntax for setupfile before (:SETUP: .. :END:).. Bu= t looks like that's just the way you represented in this email?
=C2=A0
Now include setup.org in test.org

#+BEGIN_SRC

#+SETUPFILE: ./setup.org
#+TITLE: A Three Second Route.
* A Three Second Route.
Some text.


#+END_SRC

Exporting as html result in:

#+BEGIN_SRC html

<?xml version=3D"1.0" encoding=3D"utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict= .dtd">
<html xmlns=3D"http://www.w3.org/1999/xhtml" lang=3D&qu= ot;en" xml:lang=3D"en">
<head>
<!-- 2017-07-31 Mon 18:22 -->
<meta http-equiv=3D"Content-Type" content=3D"text/html;ch= arset=3Dutf-8" />
<meta name=3D"viewport" content=3D"width=3Ddevice-width, = initial-scale=3D1" />
<title>A Three Second Route.</title>
<meta name=3D"generator" content=3D"Org mode" /><= br> #+END_SRC

Note that TITLE is exported.

Using org-master bb6e40b08655cc2f33bdf6f9

=C2=A0I can recreate this issue when using the HTML backed, not when usi= ng the ascii backend.

My example:

=3D=3D setup.org =3D=3D
#+OPTIONS: title:nil author:nil toc:nil
=3D=3D=3D=3D= =3D

=3D=3D exa= mple.org =3D=3D=3D=3D=3D
#+SETUPFILE: ./setup.org
#+TITLE: This Title Must Not Export
* Heading 1
Some text.
=3D=3D=3D=3D=3D

C-c C-e t A (ascii export to buffer) gives:

=3D=3D=3D=3D=3D
1 Heading 1
= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=C2=A0 Some text= .
=3D=3D=3D=3D=3D

C-c C-e h H (htm= l export to buffer) gives:

=3D=3D=3D=3D=3D
<?xml version=3D"1.0" encoding=3D"utf-8"?>= ;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN= "
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns=3D"ht= tp://www.w3.org/1999/xhtml" lang=3D"en" xml:lang=3D"= ;en">
<head>
<!-- 2017-07-31 Mon 14:22= -->
<meta http-equiv=3D"Content-Type" content=3D= "text/html;charset=3Dutf-8" />
<meta name=3D"= ;viewport" content=3D"width=3Ddevice-width, initial-scale=3D1&quo= t; />
<title>This Title Must Not Export</title>
=3D=3D <snip> =3D=3D

--

Kaushal Modi

--f403045f740064584d0555a123b0--