[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] new exporter and derived-backend
From: |
Nicolas Goaziou |
Subject: |
Re: [O] new exporter and derived-backend |
Date: |
Wed, 06 Feb 2013 23:13:19 +0100 |
Hello,
Rick Frankel <address@hidden> 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