From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: [PATCH] HTML export - Do not add spaces to the data in
 sections
Date: Sun, 10 Aug 2008 10:30:57 -0400
Message-ID: <87abflt00u.fsf@gollum.intra.norang.ca>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Return-path: 
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1KSBwl-0003dK-9T
	for emacs-orgmode@gnu.org; Sun, 10 Aug 2008 10:31:03 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1KSBwk-0003cD-La
	for emacs-orgmode@gnu.org; Sun, 10 Aug 2008 10:31:02 -0400
Received: from [199.232.76.173] (port=35495 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1KSBwk-0003bi-67
	for emacs-orgmode@gnu.org; Sun, 10 Aug 2008 10:31:02 -0400
Received: from mho-02-bos.mailhop.org ([63.208.196.179]:64377)
	by monty-python.gnu.org with esmtps
	(TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60)
	(envelope-from ) id 1KSBwj-0006uC-2Y
	for emacs-orgmode@gnu.org; Sun, 10 Aug 2008 10:31:01 -0400
List-Id: "General discussions about Org-mode." 
List-Unsubscribe: ,
	
List-Archive: 
List-Post: 
List-Help: 
List-Subscribe: ,
	
Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
To: Carsten Dominik 
Cc: org-mode mailing list 

 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
#+BEGIN_EXAMPLE
 ..
#+END_EXAMPLE
block.
---

I use 
..
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 "
\n"))
-- 
1.6.0.rc2