emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: new exporter and derived-backend
Date: Wed, 06 Feb 2013 23:13:19 +0100	[thread overview]
Message-ID: <87a9rhm6ps.fsf@gmail.com> (raw)
In-Reply-To: <20130205232038.GA51164@BigDog.local> (Rick Frankel's message of "Tue, 5 Feb 2013 18:20:38 -0500")

Hello,

Rick Frankel <rick@rickster.com> writes:

> Hi-
> I am trying to define a backend derived from `e-html' for export to
> s5. However, it seems that the derived settings in `:options-alist'
> are not being respected.
>
> For instance:
>
> #+begin_src elisp
>   (org-export-define-derived-backend foo e-html
>     :options-alist
>     ((:style-include-scripts nil nil nil t)
>      (:style-include-default nil nil nil t)
>      (:style nil nil "<style></style>" t)))
>   (org-export-to-buffer 'foo "*foo*")
>   (with-current-buffer "*foo*"
>     (buffer-substring (point-min) (point-max)))
> #+end_src
>
> Still includes both the default style and the scripts and does not
> include the `:style' specified above. Abbreviated results from the
> above:
>
> #+results:
> #+begin_example
> <!-- snip -->
> <style type="text/css">
>  <!--/*--><![CDATA[/*><!--*/
>   html { font-family: Times, serif; font-size: 12pt; }
>   .title  { text-align: center; }
>   .todo   { color: red; }
>   /* snip */
>   /*]]>*/-->
> </style><script type="text/javascript">
> /*
> @licstart  The following is the entire license notice for the
> JavaScript code in this tag.
>
> /* snip */
> /*]]>*///-->
> </script>
> </head>
> <body>
> </body>
> </html>
> #+end_example
>
>
> am i missing something or is there a problem in org-e-html?

That's a bug in ox.el. It will be fixed when the it is merged. Thank you
for reporting it.

Please note that :style will become :html-style and so on.


Regards,

-- 
Nicolas Goaziou

      reply	other threads:[~2013-02-06 22:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-05 23:20 new exporter and derived-backend Rick Frankel
2013-02-06 22:13 ` Nicolas Goaziou [this message]

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=87a9rhm6ps.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).