emacs-orgmode
[Top][All Lists]
Advanced

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

[O] [bug] External style file for export of agenda view


From: Sebastien Vauban
Subject: [O] [bug] External style file for export of agenda view
Date: Wed, 19 Sep 2012 12:28:54 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2 (windows-nt)

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




reply via email to

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