emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* (setq org-hide-emphasis-markers t) + markup + lists + Visible only = blank list items
@ 2020-01-11  1:49 Michael Dixon
  2020-01-11 19:21 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Dixon @ 2020-01-11  1:49 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: (setq org-hide-emphasis-markers t) + markup + lists + Visible only = blank list items
  2020-01-11  1:49 (setq org-hide-emphasis-markers t) + markup + lists + Visible only = blank list items Michael Dixon
@ 2020-01-11 19:21 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2020-01-11 19:21 UTC (permalink / raw)
  To: Michael Dixon; +Cc: emacs-orgmode

Hello,

Michael Dixon <dixius99@gmail.com> writes:

> 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}

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-11 19:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-11  1:49 (setq org-hide-emphasis-markers t) + markup + lists + Visible only = blank list items Michael Dixon
2020-01-11 19:21 ` Nicolas Goaziou

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).