emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug] External style file for export of agenda view
@ 2012-09-19 10:28 Sebastien Vauban
  0 siblings, 0 replies; only message in thread
From: Sebastien Vauban @ 2012-09-19 10:28 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello,

When you want to export an agenda view with your own CSS, you must do the
following:

#+begin_src emacs-lisp
  (setq org-agenda-export-html-style
         "<style><link rel=\"stylesheet\" type=\"text/css\" href=\"agenda.css\"/></style>")
#+end_src

If you don't put the `style' tag, the above is simply ignored.

Though, and that's the bug, that line is copied "verbatim" in the exported
HTML:

--8<---------------cut here---------------start------------->8---
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<!-- Created by htmlize-1.36 in css mode. -->
<html>
  <head>
    <title>Summary Review - Aviva ETE</title>
    <style><link rel="stylesheet" type="text/css" href="org-agenda-views.css"/></style>
  </head>
  <body>
  ...
--8<---------------cut here---------------end--------------->8---

And that's not correctly interpreted by the browsers (tested with Firefox and
Chrome).

Instead, the `style' tags must not be provided. But the effect of the `setq'
is void, currently...

Best regards,
  Seb

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-09-19 10:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-19 10:28 [bug] External style file for export of agenda view Sebastien Vauban

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).