emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] custom IDs not exported


From: Daniel Clemente
Subject: [O] custom IDs not exported
Date: Sun, 12 Jun 2011 00:42:31 +0200
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/24.0.50 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

  Commit 438536f6157794101ce0957e39cad6bf70580751 („Change underscores to 
hyphens in section labels“) broke the export of CUSTOM_IDs.

  Take for instance this file:

-----------------------
#+TITLE: Cosas por hacer

* Programas
  :PROPERTIES:
  :CUSTOM_ID: programas
  :END:

** emacs
   :PROPERTIES:
   :CUSTOM_ID: emacs
   :END:
Editor de textos

------------------------


  When exporting (C-c C-e H) you get this table of contents:

------------------------
<div id="text-table-of-contents">
<ul>
<li><a href="#programas">1 Programas </a>
<ul>
<li><a href="#sec-1_1">1.1 emacs </a></li>
</ul>
</li>
</ul>
</div>

-------------------------

  The first one is correct because it is first-level. All non-first-level get 
#sec-NUMBERS instead of the custom ID.

  Not only the table of contents; the header's ID is also wrong:
<h3 id="sec-1_1"><a name="sec-1-1" id="sec-1-1"></a><span 
class="section-number-3">1.1</span> emacs </h3>


  Tested with current org-mode. 


  Greetings,
Daniel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]