Export: Count levels relative when doing subtree export.
commit521281bf3d40a5d94ac502e599be2fcd81a71eed
authorCarsten Dominik <carsten.dominik@gmail.com>
Fri, 6 Feb 2009 17:07:26 +0000 (6 18:07 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Fri, 6 Feb 2009 17:15:42 +0000 (6 18:15 +0100)
treed47bd9e2805e063c789d861c696754b822500d9b
parent6eed51c3045315ac0566a3c1e3d212f02ca70371
Export: Count levels relative when doing subtree export.

William Henney writes:

    Consider a structure like this:

    * first
    ** second
    *** third
    **** fourth

    Currently, if I export the "third" sub-tree to html (via "C-c @
    C-x C-e h"), then "third" becomes an <h1> heading, but "fourth"
    becomes an <h5> heading. I would rather it were <h2>, i.e. that
    all heading levels be relative to the root of the sub-tree. Is
    there any way to achieve this?

This was not possible so far, but this commit measures the first
headline of the subtree and applies an offset to all level values.
lisp/ChangeLog
lisp/org-exp.el