From: Alexandre Jesus <email@example.com>
Subject: ox-extra ignore-headlines mismatching/unexpected behavior
Date: Sat, 13 Jun 2020 22:13:20 +0100 [thread overview]
Message-ID: <firstname.lastname@example.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1724 bytes --]
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 --]
next reply other threads:[~2020-06-13 21:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-13 21:13 Alexandre Jesus [this message]
2020-09-04 17:40 ` Bastien
2021-12-02 15:02 ` Gabriel Petrini
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:
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* 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
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).