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
  2020-05-19
- Org mode version 9.3.7 (9.3.7-2-g706970-elpaplus @
  /home/adbjesus/.emacs.d/elpa/org-plus-contrib-20200608/)

Thanks,
Alexandre

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

* Re: ox-extra ignore-headlines mismatching/unexpected behavior
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2020-09-04 17:40 UTC (permalink / raw)
  To: Alexandre Jesus, Aaron Ecay; +Cc: emacs-orgmode

Hi Alexandre,

Alexandre Jesus <adbjesus@gmail.com> writes:

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

thanks for reporting this.  I'm copying if he has time to have a look.

-- 
 Bastien


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

* Re: ox-extra ignore-headlines mismatching/unexpected behavior
  2020-09-04 17:40 ` Bastien
@ 2021-12-02 15:02   ` Gabriel Petrini
  0 siblings, 0 replies; 3+ messages in thread
From: Gabriel Petrini @ 2021-12-02 15:02 UTC (permalink / raw)
  To: Bastien, Alexandre Jesus, Aaron Ecay; +Cc: emacs-orgmode

Em sex, 2020-09-04 às 19:40 +0200, Bastien escreveu:
> Hi Alexandre,
> 
> Alexandre Jesus <adbjesus@gmail.com> writes:
> 
> > 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:
> 
> thanks for reporting this.  I'm copying if he has time to have a look.
> 

I also have this issue in version 9.6. Are there any workaround?

I've tried the suggestions in
[[https://lists.gnu.org/archive/html/emacs-orgmode/2014-03/msg01458.html][here]
], but it is incompatible with heading properties.

gpetrini


^ 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

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