From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Lomov Subject: Re: [BUG] html export and org results block and indentation Date: Tue, 3 Apr 2012 17:00:28 +0900 Message-ID: <20120403080028.GB1018@smoon> References: <87bonjpueo.fsf@med.uni-goettingen.de> <8762dp6br8.fsf@gnu.org> <8762dpdkn4.fsf@med.uni-goettingen.de> <16178.1332936045@alphaville> <87vclodi2a.fsf@med.uni-goettingen.de> <16716.1332938483@alphaville> <87zkatpbzv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="C7zPtVaVf+AK4Oqc" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEyfU-0006sP-2T for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 04:00:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEyfM-0002tx-0Z for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 04:00:43 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:49259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEyfL-0002tZ-Jx for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 04:00:35 -0400 Received: by bkwq16 with SMTP id q16so3620465bkw.0 for ; Tue, 03 Apr 2012 01:00:32 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87zkatpbzv.fsf@gnu.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --C7zPtVaVf+AK4Oqc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, ** Bastien [2012-04-03 08:26:12 +0200]: > Nick Dokos writes: >> Andreas Leha wrote: >>> The difference seems to come from me loading the module >>> org-special-blocks. Without loading this module, I also get your >>> result. >> One mystery down, two to go: so there is a (possible) bug in the html >> exporter with indented #+BEGIN_ORG/#+END_ORG blocks and another >> (possible) bug in org-special-blocks: they are multiplying like >> rabbits :-) > So let's herd rabbits and hang them thread by thread: can you/Andreas > post a bug report for each rabbit with a description of the rabbit's > anatomy and a way to double-check its anatomy? How about that: [see attached file "ex.org"] I run it with my standard configuration (at end of attached file) and with emacs -Q -eval "(setq org-modules '(org-special-blocks))" ex.org P.S. I looked into git log but the only recent changes in org-special-blocks.el were variable renaming: 'line' -> 'org-special-blocks-line'. I remember that export function works Mar. 31 but don't remember what commit of org-mode this was. --- WBR, Vladimir Lomov -- "sic transit discus mundi" (From the System Administrator's Guide, by Lars Wirzenius) --C7zPtVaVf+AK4Oqc Content-Type: application/vnd.lotus-organizer Content-Disposition: attachment; filename="ex.org" Content-Transfer-Encoding: quoted-printable #+TITLE: Problem with ~org-special-blocks~=0A#+AUTHOR: Vladimir Lomov=0A#+D= ESCRIPTION: In theory this file should show a problem with file exporting t= o HTML while ~org-special-blocks~ is loaded.=0A=0A* Introduction=0A=0AIn my= ~.emacs~ I have the following lines:=0A#+BEGIN_SRC elisp=0A ...=0A ;;;;;= ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Org Mode ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;= ;;;;;;;;;=0A ;;;=0A ;; Org settings. Should be placed in separate file?= =0A ;;;=0A (load "org-mode-custom.el")=0A ...=0A#+END_SRC=0Awhere ~org-m= ode-custom.el~ contains following line=0A#+BEGIN_SRC elisp=0A (setq org-mo= dules '(org-bbdb org-bibtex org-docview org-info org-jsinfo org-habit org-s= pecial-blocks org-id org-ctags org-annotate-file))=0A#+END_SRC=0A=0ANow, if= I try to export to HTML I'll get in =3D*Message*=3D buffer:=0A~run-hooks: = Symbol's value as variable is void: org-special-blocks-line~=0A=0AExcluding= ~org-special-blocks~ from ~org-modules~ allows to export (of course).=0A= =0A* COMMENT=0A=0A** My system info=0A=0AOS: Archlinux x86_64,=0A=0AEmacs = : GNU Emacs 24.0.95.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.0)=0A of = 2012-04-03 on XXXX = ### Self compiled, rev. 107738=0APackage: Org-mode version 7.8.08 = ### git: master@3b04635542269532= 68e747377abc099b8f3c9783=0A=0A=0Acurrent state:=0A=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=0A(setq=0A org-export-preprocess-before-selecting-backen= d-code-hook '(org-beamer-select-beamer-code)=0A org-tab-first-hook '(org-hi= de-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-resul= t-toggle-maybe)=0A org-speed-command-hook '(org-speed-command-default-hook = org-babel-speed-command-hook)=0A org-export-html-after-blockquotes-hook '(o= rg-special-blocks-convert-html-special-cookies)=0A org-occur-hook '(org-fir= st-headline-recenter)=0A org-metaup-hook '(org-babel-load-in-session-maybe)= =0A org-export-preprocess-before-normalizing-links-hook '(org-remove-file-l= ink-modifiers)=0A org-log-done 'note=0A org-confirm-shell-link-function 'ye= s-or-no-p=0A org-export-latex-after-blockquotes-hook '(org-special-blocks-c= onvert-latex-special-cookies)=0A org-export-latex-final-hook '(org-beamer-a= mend-header org-beamer-fix-toc org-beamer-auto-fragile-frames=0A o= rg-beamer-place-default-actions-for-lists)=0A org-export-html-style-include= -default nil=0A org-emphasis-regexp-components '(" =E2=80=8B('\"{" "- =E2= =80=8B.,:!?;'\")}\\" " =0D\n,\"'" "." 1)=0A org-export-latex-after-initial= -vars-hook '(org-beamer-after-initial-vars)=0A org-export-html-style ""=0A org-return-follows-link t=0A org-default-notes-file "~/works= /org/notes.org"=0A org-drawers '("PROPERTIES" "CLOCK" "LOGBOOK" "NOTEBENE")= =0A org-after-todo-state-change-hook '(org-clock-out-if-current)=0A org-src= -mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edi= t-buffer)=0A org-agenda-before-write-hook '(org-agenda-add-entry-text)=0A o= rg-babel-pre-tangle-hook '(save-buffer)=0A org-mode-hook '(#[nil "=08\205= =1C=00\302 \205=1C=00\303\304\302 !\305P!=19\306 !\205=1B=00\307 !)\207"=0A= [org-ctags-enabled-p tags-filename buffer-file-name expand-file-name f= ile-name-directory "/TAGS"=0A file-exists-p visit-tags-table]=0A 3= ]=0A #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-ho= ok org-show-block-all append local] 5]=0A #[nil "\300\301\302\303\304$\20= 7" [org-add-hook change-major-mode-hook org-babel-show-result-all append lo= cal]=0A 5]=0A org-babel-result-hide-spec org-babel-hide-all-hashes tu= rn-on-org-cdlatex flyspell-mode)=0A org-format-latex-header "\\documentclas= s{article}\n\\usepackage[user=3Dorg]{isu-th3}\n\\pagestyle{empty} = % do not remove\n[NO-PACKAGES]\n[NO-DEFAULT-PACKAGES]\n% The settings be= low are copied from fullpage.sty\n\\setlength{\\textwidth}{\\paperwidth}\n\= \addtolength{\\textwidth}{-3cm}\n\\setlength{\\oddsidemargin}{1.5cm}\n\\add= tolength{\\oddsidemargin}{-2.54cm}\n\\setlength{\\evensidemargin}{\\oddside= margin}\n\\setlength{\\textheight}{\\paperheight}\n\\addtolength{\\textheig= ht}{-\\headheight}\n\\addtolength{\\textheight}{-\\headsep}\n\\addtolength{= \\textheight}{-\\footskip}\n\\addtolength{\\textheight}{-3cm}\n\\setlength{= \\topmargin}{1.5cm}\n\\addtolength{\\topmargin}{-2.54cm}"=0A org-ctrl-c-ctr= l-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)=0A org-e= xport-latex-packages-alist '(("user=3Dorg" "isu-th3" t))=0A org-directory "= ~/works/org"=0A org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle= -hide-drawers org-cycle-show-empty-lines=0A org-optimize-window-after-vi= sibility-change)=0A org-export-latex-format-toc-function 'org-export-latex-= format-toc-default=0A org-export-blocks '((src org-babel-exp-src-block nil)= (export-comment org-export-blocks-format-comment t)=0A (ditaa org-ex= port-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil))=0A or= g-archive-location "~/works/org/archive/%s.org::** =D0=97=D0=B0=D0=B2=D0=B5= =D1=80=D1=88=D1=91=D0=BD=D0=BD=D1=8B=D0=B5 =D0=B7=D0=B0=D0=B4=D0=B0=D0=BD= =D0=B8=D1=8F\n\n"=0A org-export-first-hook '(org-beamer-initialize-open-tra= ckers)=0A org-export-interblocks '((src org-babel-exp-non-block-elements))= =0A org-todo-keywords '((sequence "TODO(t)" "|" "DONE(d)") (types "CHECK(c)= " "|" "VERIFIED(v)"))=0A org-modules '(org-bbdb org-bibtex org-docview org-= info org-jsinfo org-habit org-special-blocks org-id org-ctags=0A org= -annotate-file)=0A org-babel-tangle-lang-exts '(("perl" . "pl") ("latex" . = "tex") ("asymptote" . "asy") ("emacs-lisp" . "el"))=0A org-confirm-elisp-li= nk-function 'yes-or-no-p=0A org-metadown-hook '(org-babel-pop-to-session-ma= ybe)=0A org-log-into-drawer t=0A org-babel-load-languages '((emacs-lisp . t= ) (gnuplot . t) (asymptote . t) (latex . t) (perl . t))=0A org-export-latex= -default-class "isuth3"=0A org-clock-out-hook '(org-clock-remove-empty-cloc= k-drawer)=0A org-export-preprocess-after-blockquote-hook '(org-special-bloc= ks-make-special-cookies)=0A org-export-latex-classes '(("isuth3"=0A = "\\documentclass[11pt]{article}\n[NO-DEFAULT-PACKAGES]\n[PACKAGES]\n[EXTRA]= \n\\usepackage{hyperref}"=0A ("\\section{%s}" . "\\section*{%s}") ("= \\subsection{%s}" . "\\subsection*{%s}")=0A ("\\subsubsection{%s}" .= "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}")=0A = ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))=0A ("article" "\\doc= umentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}")=0A (= "\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsu= bsection*{%s}")=0A ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subp= aragraph{%s}" . "\\subparagraph*{%s}"))=0A ("report" "\\documentclass= [11pt]{report}" ("\\part{%s}" . "\\part*{%s}")=0A ("\\chapter{%s}" .= "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}")=0A ("\\subse= ction{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection= *{%s}"))=0A ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\= part*{%s}")=0A ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}"= . "\\section*{%s}")=0A ("\\subsection{%s}" . "\\subsection*{%s}") (= "\\subsubsection{%s}" . "\\subsubsection*{%s}"))=0A ("beamer" "\\docu= mentclass{beamer}" org-beamer-sectioning))=0A )=0A=0A --C7zPtVaVf+AK4Oqc--