[Top][All Lists]

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

[Orgmode] [PATCH] HTML export - Do not add spaces to the data in <pre> s

From: Bernt Hansen
Subject: [Orgmode] [PATCH] HTML export - Do not add spaces to the data in <pre> sections
Date: Sun, 10 Aug 2008 10:30:57 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

<pre> sections for HTML export should be clean.  We can use styles
to indent the text if that is desired.

This allows copying and pasting the text from the HTML document
so that you get the original data in the

I use <pre>..</pre> sections to save commands I use regularly in my
system documentation.  I copy and paste data directly from these
sections and noticed the extra 2 blanks preceeding the data.

This change removes the blanks only for HTML export.  The latex and
Ascii exports are unchanged.

 lisp/org-exp.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 32fa819..98fb4fe 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -2953,7 +2953,7 @@ lang=\"%s\" xml:lang=\"%s\">
          ;; Fixed-width, verbatim lines (examples)
          (when (and org-export-with-fixed-width
-                    (string-match "^[ \t]*:\\(.*\\)" line))
+                    (string-match "^[ \t]*:  \\(.*\\)" line))
            (when (not infixed)
              (setq infixed t)
              (insert "<pre class=\"example\">\n"))

reply via email to

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