emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Samuel Wales <samologist@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [HTML] subtree export reverted back to absolute H level behavior
Date: Wed, 27 Feb 2013 20:52:56 +0100	[thread overview]
Message-ID: <87r4k1r0tj.fsf@gmail.com> (raw)
In-Reply-To: <CAJcAo8sO7Shi3nfbj_Rp+Cv4jpssQjw1Q7Xw6X=BF208W0cnDw@mail.gmail.com> (Samuel Wales's message of "Wed, 27 Feb 2013 11:49:24 -0700")

Hello,

Samuel Wales <samologist@gmail.com> writes:

> The old exporter had a bug where exporting a subtree would start H
> levels at the level in the file.
>
> Thus, the top level being exported could be H8 if it were indented to
> that level.  Or H38 if it were indented to that level.
>
> IMO better behavior is relative.
>
> ===
>
> The new exporter seemed to fix this, but it seems to have gone back to
> the old behavior in a recent commit on git master.
>
> It is excellent to make the new emulate the old as much as possible;
> this reduces bugs and impact on people.  But does anybody rely on
> absolute levels for subtree export?  My guess would be no, but I could
> be wrong.
>
> ===
>
> Recent commit caused this change in output:
>
> -<h3 id="sec-1">An intriguing and fun question</h3>
> +<h7 id="sec-0-0-0-0-1">An intriguing and fun question</h7>
>
> Hope I've not misunderstood something here.  I can't run the
> dispatcher directly because I get other issues.

It would help to see your test file. For example, in the following Org buffer,

  * Level 1
  ** Level 2
  *** Level 3
  **** Level 4
  ***** Level 5
  ****** Level 6

exporting subtree with point on "Level 4" will result as <h2>Level
5</h2> and <h3>Level 6</h3>, which is correct.

I think your file is more like the following:

  * Something
  ** An intriguing and fun question
  ****** An intriguing and fun question

I.e. you skipped levels in your file. Then, numbering indeed skips
parts. So to put it differently, level is relative to the lowest level
among exported headline (it will always be 1), thereafter, it is
absolute.


Regards,

-- 
Nicolas Goaziou

  parent reply	other threads:[~2013-02-27 19:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-27 18:49 [HTML] subtree export reverted back to absolute H level behavior Samuel Wales
2013-02-27 19:15 ` Samuel Wales
2013-02-27 19:52 ` Nicolas Goaziou [this message]
2013-02-27 20:29   ` Samuel Wales
2013-02-27 20:59     ` Nicolas Goaziou
2013-02-27 21:23       ` Samuel Wales
2013-02-27 22:25         ` Nicolas Goaziou
2013-02-28  2:53           ` Samuel Wales

Reply instructions:

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r4k1r0tj.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=samologist@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

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