emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Dixon <dixius99@gmail.com>
To: emacs-orgmode@gnu.org
Subject: (setq org-hide-emphasis-markers t) + markup + lists + Visible only = blank list items
Date: Fri, 10 Jan 2020 20:49:50 -0500	[thread overview]
Message-ID: <47517B5D-02F5-4D62-96F7-D9440A17A93C@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1097 bytes --]

I’m 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 
\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.

[-- Attachment #2: Type: text/html, Size: 5844 bytes --]

             reply	other threads:[~2020-01-11  1:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-11  1:49 Michael Dixon [this message]
2020-01-11 19:21 ` (setq org-hide-emphasis-markers t) + markup + lists + Visible only = blank list items Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47517B5D-02F5-4D62-96F7-D9440A17A93C@gmail.com \
    --to=dixius99@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).