From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] HTML export - Do not add spaces to the data in
 sections
Date: Wed, 3 Sep 2008 11:36:57 +0200
Message-ID: <4F9AE931-E700-4F32-A079-EDC2D451FF98@uva.nl>
References: <87abflt00u.fsf@gollum.intra.norang.ca>
Mime-Version: 1.0 (Apple Message framework v926)
Content-Type: multipart/mixed; boundary="===============1096258221=="
Return-path: 
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1KaonV-0005bA-T7
	for emacs-orgmode@gnu.org; Wed, 03 Sep 2008 05:37:10 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1KaonU-0005Zg-Lo
	for emacs-orgmode@gnu.org; Wed, 03 Sep 2008 05:37:09 -0400
Received: from [199.232.76.173] (port=56501 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1KaonU-0005ZS-9E
	for emacs-orgmode@gnu.org; Wed, 03 Sep 2008 05:37:08 -0400
Received: from ug-out-1314.google.com ([66.249.92.171]:49629)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from ) id 1KaonU-0005gQ-7y
	for emacs-orgmode@gnu.org; Wed, 03 Sep 2008 05:37:08 -0400
Received: by ug-out-1314.google.com with SMTP id m2so2428766uge.17
	for ; Wed, 03 Sep 2008 02:37:07 -0700 (PDT)
In-Reply-To: <87abflt00u.fsf@gollum.intra.norang.ca>
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: Bernt Hansen 
Cc: org-mode mailing list 


--===============1096258221==
Content-Type: multipart/alternative; boundary=Apple-Mail-19--538234395


--Apple-Mail-19--538234395
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed;
	delsp=yes
Content-Transfer-Encoding: 7bit

Hi Bernt,  I am not sure if I understand your patch correctly:

On Aug 10, 2008, at 4:30 PM, Bernt Hansen wrote:

> 
 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)) Why are you matching exactly two spaces here? Ah, I guess I am inserting these when processing the examples.... Maybe it would be better to not insert the spaces, or insert them for ascii export only. I will do that. Thanks. - Carsten > > (when (not infixed) > (setq infixed t) > (insert "
\n"))
> -- 
> 1.6.0.rc2
>


--Apple-Mail-19--538234395
Content-Type: text/html;
	charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hi Bernt,  I am not sure =
if I understand your patch correctly:

On Aug 10, 2008, = at 4:30 PM, Bernt Hansen wrote:

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

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=3D\"%s\" xml:lang=3D\"%s\">

 ;; Fixed-width, verbatim = lines (examples)
 (when (and = org-export-with-fixed-width
- =     (string-match "^[ \t]*:\\(.*\\)" = line))
+ = =     (string-match "^[ \t]*:  \\(.*\\)" = line))

Why are you matching = exactly two spaces here?  Ah, I guess I am = inserting
these when processing the = examples....
Maybe it would be better to not insert the = spaces, or insert them for ascii
export only.  I will do = that.  Thanks.

- = Carsten


=    (when (not infixed)
=      (setq infixed t)
=      (insert "<pre = class=3D\"example\">\n"))
-- =
1.6.0.rc2


= --Apple-Mail-19--538234395-- --===============1096258221== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1096258221==--