unofficial mirror of
 help / color / Atom feed
* ox-extra ignore-headlines mismatching/unexpected behavior
@ 2020-06-13 21:13 Alexandre Jesus
  0 siblings, 0 replies; only message in thread
From: Alexandre Jesus @ 2020-06-13 21:13 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi all,

I am getting some unexpected and/or mismatching (between pdf and html
exports) behavior with ox-extra ignore-headlines. The weird behaviors I
am getting are:

1. When there is an empty line between the ignored headline and the text
   that comes before I would expect there to be a paragraph break in the
   exported file between the text that comes before and after the
   headline. This works as expected for first-level headlines for both pdf
   and html export. However, it does not work for second-level headlines
   when exporting to pdf (but it works as expected for html).

2. When there is an empty line after the ignored headline we do not get
   a paragraph break when exporting to pdf (not even in first-level
   headlines), but there is a break when exporting to html.

3. When there is no empty line around the ignored headline I would
   expect no paragraph break. For pdf export this is true, but for html
   export we get a paragraph break.

I am sending in attachment an example org file and the resulting
pdf/html where we can see these issues.

I've looked into the org-export-ignore-headlines and
org-extra--merge-sections functions to try and understand where the
problem might be. Unfortunately, given that I am somewhat new to elisp
and I am not familiar with the org parse tree I haven't had much luck.
But, if someone can point me to some resources explaining the inner
workings of org I might be able to explore it a bit further if no one
else has the time.

I am using:
- GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20) of
- Org mode version 9.3.7 (9.3.7-2-g706970-elpaplus @


[-- Attachment #2: --]
[-- Type: application/vnd.lotus-organizer, Size: 3109 bytes --]

[-- Attachment #3: example.pdf --]
[-- Type: application/pdf, Size: 113375 bytes --]

[-- Attachment #4: example.html --]
[-- Type: text/html, Size: 13074 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-13 21:13 ox-extra ignore-headlines mismatching/unexpected behavior Alexandre Jesus

unofficial mirror of

Archives are clonable:
	git clone --mirror orgmode/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 orgmode orgmode/ \
	public-inbox-index orgmode

Example config snippet for mirrors

Newsgroups are available over NNTP:

AGPL code for this site: git clone