emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ox-extra ignore-headlines mismatching/unexpected behavior
@ 2020-06-13 21:13 Alexandre Jesus
  2020-09-04 17:40 ` Bastien
  0 siblings, 1 reply; 3+ messages 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: example.org --]
[-- 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] 3+ messages in thread

end of thread, other threads:[~2021-12-03  2:33 UTC | newest]

Thread overview: 3+ messages (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
2020-09-04 17:40 ` Bastien
2021-12-02 15:02   ` Gabriel Petrini

Code repositories for project(s) associated with this public inbox


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