emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: William Crandall <bc3141592@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode@gnu.org, Jambunathan K <kjambunathan@gmail.com>
Subject: Re: Testing: org-export-e-html
Date: Thu, 31 May 2012 23:42:05 -0700	[thread overview]
Message-ID: <CAENLK5Xd_Zk+K7VU+Wc9BcqSKVXAD8gRZPOTdm6LZgjo+WXeZw@mail.gmail.com> (raw)
In-Reply-To: <CAENLK5VXCuOxm7EBoZu5pZ6pVcamDp=3K-sk063Ty84ikjRKsQ@mail.gmail.com>

Nicolas,

My email program (Gmail) deleted key HTML text,

Here, again, the core bit, as plain text, I hope it goes through:

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

Four input permutations:

1. [[directors]]
2. [[#directors]]
3. [[directors][Directors]]
4. [[#directors][Directors]]


As I see it (do let me know what I'm getting wrong!),
the old version gets all links right.

(But "old" makes one error(?) see next section.)

1. [[directors]]
   old: <a href="#sec-1">directors</a>
   new: <i>directors</i>

2. [[#directors]]
   old: <a href="#directors">#directors</a>
   new: <a href="#sec-1">Directors</a>

3. [[directors][Directors]]
   old: <a href="#sec-1">Directors</a>
   new: <i>Directors</i>

4. [[#directors][Directors]]
   old: <a href="#directors">Directors</a>
   new: <a href="#sec-1">Directors</a>


In no case is the output the same!

#4 would be most useful for my purposes, as it allows
identifying target links precisely.

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

Turning to the output for targets, the new version
does not close the <a> tag (as the old version does).
Other than that, "new" seems fine.

("Old" generates a <pre> section from the PROPERTIES drawer,
whether it is open or closed, with your encoding. Not my focus,
but is this an "old" bug?)

Org-mode input:
   * Directors
     :PROPERTIES:
     :CUSTOM_ID: directors
     :END:

HTML output:
old:
   <div id="outline-container-directors" class="outline-2">
   <h2 id="directors"><a name="sec-1" id="sec-1"></a>Directors</h2>
   <div class="outline-text-2" id="text-directors">

   <pre class="example">
   PROPERTIES
   :CUSTOM_ID: directors
   </pre>

new:
   <div id="outline-container-directors" class="outline-2">
   <h2 id="directors"><a id="sec-1" name="sec-1"/>Directors</h2>
   <div class="outline-text-2" id="text-directors">

   [no <pre> section]
--------------------------------------------------




On Thu, May 31, 2012 at 8:56 PM, William Crandall <bc3141592@gmail.com> wrote:
>
>
> Hello Nicolas,
>
> To wrap my neurons around linking, I made a small test batch.
> There appear to be several difference between the "old" HTML
> export engine and the current version of the "new".
>
> Testing org-to-HTML export:
>    old: C-c C-e h      (org-export, in org-exp.el)
>    new: M-x org-export-dispatch h  (in org-export.el)
>
> Four input permutations:
>
> 1. [[directors]]
> 2. [[#directors]]
> 3. [[directors][Directors]]
> 4. [[#directors][Directors]]
>
>
> As I see it (do let me know what I'm getting wrong!),
> the old version gets all links right.
>
> (But "old" makes one error(?) see next section.)
>
> 1. [[directors]]
>    old: <a href="#sec-1">directors</a>
>    new: <i>directors</i>

  reply	other threads:[~2012-06-01  6:42 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-30  6:27 Testing: org-export-e-html (was: Drupal syntax on html-export) William Crandall
2012-05-30  7:08 ` Testing: org-export-e-html Sebastien Vauban
2012-05-30 11:07 ` Nicolas Goaziou
2012-05-30 23:50   ` William Crandall
2012-05-30 23:53   ` William Crandall
2012-05-31  4:28     ` Jambunathan K
2012-05-31 12:08     ` Nicolas Goaziou
2012-06-01  3:56       ` William Crandall
2012-06-01  6:42         ` William Crandall [this message]
2012-06-01 16:38         ` Nicolas Goaziou
2012-06-02  2:56           ` William Crandall
2012-06-02  5:04             ` Jambunathan K
2012-06-02  7:40               ` William Crandall
2012-06-02 10:26                 ` Jambunathan K
2012-05-31  6:42 ` Jambunathan K
2012-06-01  3:44   ` William Crandall

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=CAENLK5Xd_Zk+K7VU+Wc9BcqSKVXAD8gRZPOTdm6LZgjo+WXeZw@mail.gmail.com \
    --to=bc3141592@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=kjambunathan@gmail.com \
    --cc=n.goaziou@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).