[O] HTML publishing broken?
All of a sudden I’m finding that my website won’t publish. The only change I’ve made has been setting (setq org-export-html-divs '()) because this new variable breaks my CSS otherwise. Backtrace and page in question attached; any advice appreciated. S -- Sean Whitton / s...@silentflame.com OpenPGP KeyID: 0x3B6D411B http://sean.whitton.me/ Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil) org-export-as-html(4 nil (:buffer-will-be-killed t :base-directory ~/doc/www/ :base-extension org :publishing-directory /athena:htdocs/static :recursive t :publishing-function org-publish-org-to-html :auto-sitemap t :sitemap-root [[http://sean.whitton.me/; :sitemap-filename sitemap.map :sitemap-title Sitemap :sitemap-style (quote tree) :sitemap-sort-folders (quote last) :style !--base href=\/\ /--\nlink rel=\stylesheet\ type=\text/css\ href=\/inc/v7.css\ media=\screen\ /\nlink rel=\stylesheet\ type=\text/css\ href=\/inc/cols.css\ /\n script type=\text/javascript\ src=\/inc/css3-multi-column.js\/script :style-include-default nil :exclude sitemap\\|blog\\|notes :html-preamble div class=\colmask fullpage\\ndiv class=\col1\\n !-- Column 1 start --\n h1%t/h1 :html-postamble /div\n !-- Column 1 end --\n/div\n /div\n div class=\colmask rightmenu\\ndiv class=\colleft\\n div class=\col1wrap\\ndiv class=\col1\\n !-- Column 1 start --\n\n This page is part of Sean Whitton's website. Return to\n the a href=\/\homepage/a, visit his a\n href=\http://blog.sean.whitton.me/\;blog/a, or\nchoose from the static content below.\n\n div class=\nav\\n!--#include virtual=\/inc/sitemap.shtml\ --\n /div\n!-- Column 1 end --\n/div\n /div\n div class=\col2\\n!-- Column 2 start --\n\nPage last updated: %d.br /br /\n\n E-mail author/webmaster: img\n src=\http://safemail.justlikeed.net/e/5a36d58072489e3f78678e3820d15cdf.png\\n title=\Email image created with\nsafemail.justlikeed.net\ alt=\spam-protected e-mail\naddress\ style=\vertical-align: bottom\ /br /br /\n\ndiv style=\font-size: 90%%;\XHTML generated by %c.br /br /\n\na\n href=\http://validator.w3.org/check?uri=referer\;img\n src=\/img/valid-xhtml10-blue.png\ alt=\Valid XHTML 1.0\nStrict\ height=\31\ width=\88\ //aa\n href=\http://www.anybrowser.org/campaign/\;img\n src=\/img/anybrowser.png\ alt=\Any Browser Campaign\\nheight=\31\ width=\88\ //abr /br /\n\ncopy; 2005ndash;2011 Sean Whitton, Some Rights\nReserved (see a href=\/geek/licensing/\licensing/a\n for details)./div\n\n !-- Column 2 end --\n /div\n /div\n /div\ndiv :html-extension shtml :headline-levels 4) nil nil /ssh:swhitton@athena:/home/swhitton/htdocs/static/geek/) org-publish-org-to(html (:base-directory ~/doc/www/ :base-extension org :publishing-directory /athena:htdocs/static :recursive t :publishing-function org-publish-org-to-html :auto-sitemap t :sitemap-root [[http://sean.whitton.me/; :sitemap-filename sitemap.map :sitemap-title Sitemap :sitemap-style (quote tree) :sitemap-sort-folders (quote last) :style !--base href=\/\ /--\nlink rel=\stylesheet\ type=\text/css\ href=\/inc/v7.css\ media=\screen\ /\nlink rel=\stylesheet\ type=\text/css\ href=\/inc/cols.css\ /\n script type=\text/javascript\ src=\/inc/css3-multi-column.js\/script :style-include-default nil :exclude sitemap\\|blog\\|notes :html-preamble div class=\colmask fullpage\\ndiv class=\col1\\n !-- Column 1 start --\n h1%t/h1 :html-postamble /div\n !-- Column 1 end --\n/div\n /div\n div class=\colmask rightmenu\\ndiv class=\colleft\\n div class=\col1wrap\\ndiv class=\col1\\n !-- Column 1 start --\n\n This page is part of Sean Whitton's website. Return to\n the a href=\/\homepage/a, visit his a\n href=\http://blog.sean.whitton.me/\;blog/a, or\nchoose from the static content below.\n\n div class=\nav\\n!--#include virtual=\/inc/sitemap.shtml\ --\n /div\n!-- Column 1 end --\n/div\n /div\n div class=\col2\\n!-- Column 2 start --\n\nPage last updated: %d.br /br /\n\n E-mail author/webmaster: img\n src=\http://safemail.justlikeed.net/e/5a36d58072489e3f78678e3820d15cdf.png\\n title=\Email image created with\nsafemail.justlikeed.net\ alt=\spam-protected e-mail\naddress\ style=\vertical-align: bottom\ /br /br /\n\ndiv style=\font-size: 90%%;\XHTML generated by %c.br /br /\n\na\n href=\http://validator.w3.org/check?uri=referer\;img\n src=\/img/valid-xhtml10-blue.png\ alt=\Valid XHTML 1.0\nStrict\ height=\31\ width=\88\ //aa\n href=\http://www.anybrowser.org/campaign/\;img\n src=\/img/anybrowser.png\
Re: [O] HTML publishing broken?
Hi Sean, Sean Whitton s...@silentflame.com writes: All of a sudden I’m finding that my website won’t publish. The only change I’ve made has been setting (setq org-export-html-divs '()) because this new variable breaks my CSS otherwise. Can you try (setq org-export-html-divs '( )) and report? Thanks, -- Bastien
Re: [O] HTML publishing broken?
Hi Bastien, On Thu, Aug 25, 2011 at 03:08:38PM +0200, Bastien wrote: Sean Whitton s...@silentflame.com writes: All of a sudden I’m finding that my website won’t publish. The only change I’ve made has been setting (setq org-export-html-divs '()) because this new variable breaks my CSS otherwise. Can you try (setq org-export-html-divs '( )) and report? This makes the export work again, but I get a div with class again where the preamble div used to be. And further this seems to duplicate my page title, in the preamble and then at the top of the content div (which *does* have a class=content). See http://sean.whitton.me/geek/pastebin.shtml Is it no longer possible to drop these three divs in this version of Org? I can work round this by putting /divs in my preamble I guess. Thanks for your help. -- Sean Whitton / s...@silentflame.com OpenPGP KeyID: 0x3B6D411B http://sean.whitton.me/ signature.asc Description: Digital signature
Re: [O] HTML publishing broken?
Bastien There has been too much churn around this area. Let me raise my voice again. Don't define variables. Define hooks, sexps or functions. Give enough ropes to the user. Patiently consider my inputs on s5 exporting. Make the div elements take attrs. You have earlier dismissed my inputs as complicated and proceeded ahead with a fix. There is room for improvement. ps: I don't intend to provide a patch for this. Jambunathan K.