From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernd Haug Subject: Bug: ODT export creates invalid document if literal [8.0-pre (release_8.0-pre-58-g9f1765.dirty @ mixed installation! /Users/bernd.haug/Library/Application Support/Aquamacs Emacs/org/lisp/ and /Users/bernd.haug/Library/Application Support/Aquamacs Emacs/org/info/)] Date: Wed, 13 Mar 2013 16:23:06 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFnWn-0003uQ-5P for emacs-orgmode@gnu.org; Wed, 13 Mar 2013 11:23:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFnWa-0002ZD-Qw for emacs-orgmode@gnu.org; Wed, 13 Mar 2013 11:23:41 -0400 Received: from mail-bk0-x236.google.com ([2a00:1450:4008:c01::236]:38914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFnWa-0002Yf-Cq for emacs-orgmode@gnu.org; Wed, 13 Mar 2013 11:23:28 -0400 Received: by mail-bk0-f54.google.com with SMTP id w5so520054bku.41 for ; Wed, 13 Mar 2013 08:23:27 -0700 (PDT) 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 I am exporting a document to ODT that contains the following text: blah blah blah =blah blah blah blah...=, blah blah blah bla bla (bla =bla bla bla bla...= blah). bla blah bla When opening the document in LibreOffice 3.4, I get the following message: Read-Error. Format error discovered in the file in sub-document content.xml at 1837,86(row,col). I unzipped the ODT file and looked to the named location in content.xml: blah bla blah blah blah bla blah..., blah bla blah bla bla bla bla (bla blah bla bla bla... blah). blah bla bla Obviously, the would have to be escaped in the XML output if it should be presented as intended, but it is interpreted literally as the == would advise, which causes corruption from the perspective of LibreOffice. I would suggest doing the escaping as it seems much more likely that users want to see such content mono-spaced rather than insert literal ODT markup. Quick note on my config: The dirty source directory only contains the changes from the Makefile-patch I just submitted which allows installation to locations containing space characters in their path. ------------------------------------------------------------------------ Emacs : GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2011-10-25 on braeburn.aquamacs.org - Aquamacs Distribution 2.4 Package: Org-mode version 8.0-pre (release_8.0-pre-58-g9f1765.dirty @ mixed installation! /Users/bernd.haug/Library/Application Support/Aquamacs Emacs/org/lisp/ and /Users/bernd.haug/Library/Application Support/Aquamacs Emacs/org/info/) current state: ============== (setq org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent) org-export-latex-tables-centered nil org-babel-load-languages '((sh . t) (emacs-lisp . t) (python . t)) org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-babel-tangle-lang-exts '(("python" . "py") ("emacs-lisp" . "el")) org-export-with-drawers nil org-support-shift-select t org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-latex-classes '(("doctooleng" "\\documentclass{doctooleng}" ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("xaidat" "\\documentclass{xaidat}" ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("beamer" "\\documentclass{beamer}" org-beamer-sectioning)) org-export-with-tags 'not-in-toc org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-backends '(ascii html icalendar latex md odt) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-enforce-todo-dependencies t org-occur-hook '(org-first-headline-recenter) org-from-is-user-regexp "\\" org-latex-format-headline-function 'org-latex-format-headline-default-function org-metadown-hook '(org-babel-pop-to-session-maybe) ) --text follows this line-- -- Senior Software Engineer Xaidat GmbH Wickenburggasse 5 8010 Graz Austria / Europe web: http://www.xaidat.com/ phone: +43-676-845023-706 email: bernd.haug@xaidat.com FN 384295s, LG ZRS Graz UID-Nr. ATU67414611