emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] custom IDs not exported


From: Daniel Clemente
Subject: Re: [O] custom IDs not exported
Date: Thu, 16 Jun 2011 23:31:27 +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)

Hi,

Could you check this patch in?

Thanks


El Sat, 11 Jun 2011 23:12:26 -0400 Nick Dokos va escriure:
> 
> I have a minimal patch that I think fixes this problem, but there are
> other underscores used in various places in org-html.el so there might
> be additional problems. I'd appreciate it if you (and/or others) test it
> and report not only on this problem but on any other problems you find.
> 
> Thanks,
> Nick
> 
> diff --git a/lisp/org-html.el b/lisp/org-html.el
> index afc6a77..b5d371f 100644
> --- a/lisp/org-html.el
> +++ b/lisp/org-html.el
> @@ -1395,7 +1395,7 @@ lang=\"%s\" xml:lang=\"%s\">
>                                          (setq txt (replace-match "" t t 
> txt)))
>                                        (setq href
>                                              (replace-regexp-in-string
> -                                             "\\." "_" (format "sec-%s" 
> snumber)))
> +                                             "\\." "-" (format "sec-%s" 
> snumber)))
>                                        (setq href (org-solidify-link-text (or 
> (cdr (assoc href org-export-preferred-target-alist)) href)))
>                                        (push
>                                         (format
> @@ -2412,7 +2412,7 @@ When TITLE is nil, just close all open levels."
>               (insert "<ul>\n<li>" title "<br/>\n"))))
>       (aset org-levels-open (1- level) t)
>       (setq snumber (org-section-number level)
> -           snu (replace-regexp-in-string "\\." "_" snumber))
> +           snu (replace-regexp-in-string "\\." "-" snumber))
>       (setq level (+ level org-export-html-toplevel-hlevel -1))
>       (if (and num (not body-only))
>           (setq title (concat
> 



reply via email to

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