From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roland Coeurjoly Subject: Bug: Exporting dash to html gives hexadecimal code [8.2.10 (release_8.2.10 @ /usr/share/emacs/24.5/lisp/org/)] Date: Sun, 11 Nov 2018 16:35:47 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000068fc4d057a655755" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLrmQ-00085P-BX for emacs-orgmode@gnu.org; Sun, 11 Nov 2018 10:36:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLrmO-0002Fn-VV for emacs-orgmode@gnu.org; Sun, 11 Nov 2018 10:36:06 -0500 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]:44537) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gLrmO-0002Ak-KA for emacs-orgmode@gnu.org; Sun, 11 Nov 2018 10:36:04 -0500 Received: by mail-lj1-x22e.google.com with SMTP id k19-v6so5422949lji.11 for ; Sun, 11 Nov 2018 07:36:01 -0800 (PST) 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: emacs-orgmode@gnu.org --00000000000068fc4d057a655755 Content-Type: text/plain; charset="UTF-8" I publish (M+x org-publish-project) the following to html: #+OPTIONS: toc:nil num:nil #+BEGIN_EXPORT html --- layout: post title: "A beginner's Emacs config" subtitle: "First steps into the Emacs universe" tags: [hacking, emacs] category: blog --- #+END_EXPORT I get the following:

— layout: post title: "A beginner's Emacs config" subtitle: "First steps into the Emacs universe" tags: [hacking, emacs] category: blog —

I expect the following: --- layout: post title: "A beginner's Emacs config" subtitle: "First steps into the Emacs universe" tags: [hacking, emacs] category: blog --- I learn that — is the hexadecimal code for a dash (-). As a result of the previously described behaviour, my blog doesn't display the html. Like a all. Emacs : GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-09-20 on lcy01-07, modified by Debian Package: Org-mode version 8.2.10 (release_8.2.10 @ /usr/share/emacs/24.5/lisp/org/) current state: ============== (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-export-show-temporary-export-buffer nil org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(lambda (name contents) contents) org-latex-format-inlinetask-function 'ignore org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-latex-format-headline-function 'org-latex-format-headline-default-function org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ascii-format-drawer-function '(lambda (name contents width) contents) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-html-format-headline-function 'ignore org-html-format-inlinetask-function 'ignore org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-publish-project-alist '(("https://rcoeurjoly.github.io/posts" :base-directory "~/RCoeurjoly.github.io/_org/posts" :base-extension "org" :publishing-directory "~/RCoeurjoly.github.io/_posts" :recursive t :publishing-function org-html-publish-to-html :headline-levels 4 :html-extension "html" :body-only t) ) ) --00000000000068fc4d057a655755 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I publish (M+x org-publish-project) = the following to html:

#+OPTIONS: toc:nil num:nil<= /div>

#+BEGIN_EXPORT html
---
layout= : post
title: "A beginner's Emacs config"
subtitle: "First steps into the Emacs universe"
tags: = [hacking, emacs]
category: blog
---
#+END_EXP= ORT

I get the following:

= <div class=3D"export">
<p>
&#= x2014;
layout: post
title: "A beginner's Emacs= config"
subtitle: "First steps into the Emacs universe= "
tags: [hacking, emacs]
category: blog
= &#x2014;
</p>

I expect the fol= lowing:

---
layout: post
title= : "A beginner's Emacs config"
subtitle: "First= steps into the Emacs universe"
tags: [hacking, emacs]
=
category: blog
---

I learn that &am= p;#x2014 is the hexadecimal code for a dash (-).
As a result of t= he previously described behaviour, my blog doesn't
display th= e html. Like a all.

Emacs=C2=A0 : GNU Emacs 24.5.1= (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
=C2=A0of 2017-09-20 o= n lcy01-07, modified by Debian
Package: Org-mode version 8.2.10 (= release_8.2.10 @ /usr/share/emacs/24.5/lisp/org/)

= current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
=C2=A0org-tab-first-hook '(org-hide-block-toggle-may= be
=C2=A0 =C2=A0 =C2=A0 = org-src-native-tab-command-maybe
= =C2=A0 =C2=A0 =C2=A0 org-babel-hide-result-toggle-maybe
= =C2=A0 =C2=A0 =C2=A0 org-babel-hea= der-arg-expand)
=C2=A0org-speed-command-hook '(org-speed-comm= and-default-hook
=C2=A0= org-babel-speed-command-hook)
=C2=A0org-occur-hook '(org-fir= st-headline-recenter)
=C2=A0org-export-show-temporary-export-buff= er nil
=C2=A0org-metaup-hook '(org-babel-load-in-session-mayb= e)
=C2=A0org-html-format-drawer-function '(lambda (name conte= nts) contents)
=C2=A0org-latex-format-inlinetask-function 'ig= nore
=C2=A0org-confirm-shell-link-function 'yes-or-no-p
=
=C2=A0org-ascii-format-inlinetask-function 'org-ascii-format-inlin= etask-default
=C2=A0org-latex-format-headline-function 'org-l= atex-format-headline-default-function
=C2=A0org-after-todo-state-= change-hook '(org-clock-out-if-current)
=C2=A0org-latex-forma= t-drawer-function '(lambda (name contents) contents)
=C2=A0or= g-src-mode-hook '(org-src-babel-configure-edit-buffer
=C2=A0 =C2=A0 =C2=A0org-src-mode-configur= e-edit-buffer)
=C2=A0org-agenda-before-write-hook '(org-agend= a-add-entry-text)
=C2=A0org-babel-pre-tangle-hook '(save-buff= er)
=C2=A0org-mode-hook '(#[nil "\300\301\302\303\304$\2= 07"
=C2=A0 =C2=A0[o= rg-add-hook change-major-mode-hook org-show-block-all
=C2=A0 =C2=A0 append local]
=C2=A0 =C2=A05]
#[nil "\300\301\302\303\304$\207"
=C2=A0 =C2=A0[org-add-hook c= hange-major-mode-hook
= =C2=A0 =C2=A0 org-babel-show-result-all append local]
=C2=A0 =C2=A05]
org-babel-result-hide-spec org-babel-hide-all-hashes= )
=C2=A0org-ascii-format-drawer-function '(lambda (name conte= nts width) contents)
=C2=A0org-ctrl-c-ctrl-c-hook '(org-babel= -hash-at-point
=C2=A0 o= rg-babel-execute-safely-maybe)
=C2=A0org-cycle-hook '(org-cyc= le-hide-archived-subtrees org-cycle-hide-drawers
=C2=A0 org-cycle-hide-inline-tasks org-cycle-show-= empty-lines
=C2=A0 org-o= ptimize-window-after-visibility-change)
=C2=A0org-confirm-elisp-l= ink-function 'yes-or-no-p
=C2=A0org-metadown-hook '(org-b= abel-pop-to-session-maybe)
=C2=A0org-html-format-headline-functio= n 'ignore
=C2=A0org-html-format-inlinetask-function 'igno= re
=C2=A0org-clock-out-hook '(org-clock-remove-empty-clock-dr= awer)
=C2=A0org-publish-project-alist '(("https://rcoeurjoly.github.io/posts&quo= t;
=C2=A0 =C2=A0 =C2=A0= :base-directory
=C2=A0= =C2=A0 =C2=A0 "~/R= Coeurjoly.github.io/_org/posts"
=C2=A0 =C2=A0 =C2=A0 :base-extension "org" :pub= lishing-directory
=C2= =A0 =C2=A0 =C2=A0 "~/RC= oeurjoly.github.io/_posts" :recursive t
=C2=A0 =C2=A0 =C2=A0 :publishing-function org-htm= l-publish-to-html
=C2= =A0 =C2=A0 =C2=A0 :headline-levels 4 :html-extension "html"
=
=C2=A0 =C2=A0 =C2=A0 :body-o= nly t)
=C2=A0 =C2=A0 = =C2=A0)
=C2=A0)

--00000000000068fc4d057a655755--