From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Dixon Subject: (setq org-hide-emphasis-markers t) + markup + lists + Visible only = blank list items Date: Fri, 10 Jan 2020 20:49:50 -0500 Message-ID: <47517B5D-02F5-4D62-96F7-D9440A17A93C@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_9FDE1657-659C-4DFA-B0A6-B18BCD4A7F73" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54178) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iq5uV-0002U4-IS for emacs-orgmode@gnu.org; Fri, 10 Jan 2020 20:49:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iq5uU-0000EY-EK for emacs-orgmode@gnu.org; Fri, 10 Jan 2020 20:49:55 -0500 Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]:38203) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iq5uU-00005q-6w for emacs-orgmode@gnu.org; Fri, 10 Jan 2020 20:49:54 -0500 Received: by mail-qk1-x72d.google.com with SMTP id k6so3807978qki.5 for ; Fri, 10 Jan 2020 17:49:53 -0800 (PST) Received: from ?IPv6:2607:f2c0:e176:2c:4df5:88a1:97e:7955? ([2607:f2c0:e176:2c:4df5:88a1:97e:7955]) by smtp.gmail.com with ESMTPSA id i5sm1928503qtv.80.2020.01.10.17.49.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2020 17:49:51 -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-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --Apple-Mail=_9FDE1657-659C-4DFA-B0A6-B18BCD4A7F73 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I=E2=80=99m running Org 9.3.1 and Emacs 27.0.60, which I compile myself. I discovered that if I have (setq org-hide-emphasis-markers t) in my = config, and I create an ordered or unordered list where there are list = items only containing marked up text, and then I export Visible only = (C-v), those list items export as blank lines (other than the bullet or = number). For example, if I have an org file with the following: * Heading This is some text. And following is a list. 1. ~with code~ 2. some text ~with code~ 3. some text And back to a new paragraph It will export to LaTeX/PDF as: Heading This is some text. And following is a list. some text with code some text And back to a new paragraph If I look at the LaTeX source that was exported for the list, this is = what it looks like: \begin{enumerate} \item=20 \item some text \texttt{with code} \item some text \end{enumerate} I can reproduce this with an init.el file containing only these 2 lines: (require 'org) (setq org-hide-emphasis-markers t) If I comment out the second line, the list exports correctly.= --Apple-Mail=_9FDE1657-659C-4DFA-B0A6-B18BCD4A7F73 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 I=E2=80= =99m running Org 9.3.1 and Emacs 27.0.60, which I compile myself.

I discovered that if I = have (setq org-hide-emphasis-markers = t) in my config, and I create an ordered or unordered list where = there are list items only containing marked up text, and then I export = Visible only (C-v), those list items export as blank lines (other than = the bullet or number).

For example, if I have an org file with the = following:

* = Heading This is some text. And following is a list. 1. ~with code~ 2. some text ~with code~ 3. some text And back to a new paragraph

It will export to = LaTeX/PDF as:
Heading
This is some text. And following is a = list.

  1. some text with code
  2. some = text
And back to a new paragraph
If I = look at the LaTeX source that was exported for the list, this is what it = looks like:
\begin{enumerate} \item=20 \item some text \texttt{with code} \item some text \end{enumerate}
I can reproduce this with an init.el = file containing only these 2 lines:
(require 'org) (setq org-hide-emphasis-markers t)
If I comment = out the second line, the list exports = correctly.
= --Apple-Mail=_9FDE1657-659C-4DFA-B0A6-B18BCD4A7F73--