From ad9f393b612662d898c1be990f60d17cc71b5a00 Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Wed, 17 Aug 2011 01:14:04 +0530 Subject: [PATCH] org-odt: Rename style `OrgSourceBlock' to `OrgFixedWidthBlock' * contrib/odt/styles/OrgOdtStyles.xml: Rename the style `OrgSourceBlock' to `OrgFixedWidthBlock'. * contrib/lisp/org-odt.el (org-export-odt-default-org-styles-alist): Map fixedwidth paragraphs to the custom style `OrgFixedWidthBlock'. (org-odt-format-line, org-odt-format-source-code-or-example): Style both fixedwidth paragraphs and src/example blocks in fixedwidth format. --- contrib/lisp/org-odt.el | 8 ++++---- contrib/odt/styles/OrgOdtStyles.xml | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/contrib/lisp/org-odt.el b/contrib/lisp/org-odt.el index 6f5c65530..054c47105 100644 --- a/contrib/lisp/org-odt.el +++ b/contrib/lisp/org-odt.el @@ -227,7 +227,7 @@ be linked only." (defvar org-export-odt-default-org-styles-alist '((paragraph . ((default . "Text_20_body") - (fixedwidth . "OrgSourceBlock") + (fixedwidth . "OrgFixedWidthBlock") (verse . "OrgVerse") (quote . "Quotations") (blockquote . "Quotations") @@ -834,8 +834,8 @@ PUB-DIR is set, use this as the publishing directory." (case org-lparse-dyn-current-environment (fixedwidth (concat (org-odt-format-stylized-paragraph - 'src (org-odt-fill-tabs-and-spaces - (org-xml-encode-plain-text line))) "\n")) + 'fixedwidth (org-odt-fill-tabs-and-spaces + (org-xml-encode-plain-text line))) "\n")) (t (concat line "\n")))) (defun org-odt-format-comment (fmt &rest args) @@ -859,7 +859,7 @@ PUB-DIR is set, use this as the publishing directory." (mapconcat (lambda (line) (org-odt-format-stylized-paragraph - 'src (org-odt-fill-tabs-and-spaces line))) + 'fixedwidth (org-odt-fill-tabs-and-spaces line))) (org-split-string lines "[\r\n]") "\n")) (defun org-xml-encode-plain-text-lines (rtn) diff --git a/contrib/odt/styles/OrgOdtStyles.xml b/contrib/odt/styles/OrgOdtStyles.xml index 317a23426..0cdff5f7c 100644 --- a/contrib/odt/styles/OrgOdtStyles.xml +++ b/contrib/odt/styles/OrgOdtStyles.xml @@ -244,11 +244,13 @@ - + + +