From mboxrd@z Thu Jan 1 00:00:00 1970 From: Water Lin Subject: Re: How can I keep spaces while publishing html? Date: Mon, 21 Sep 2009 13:05:53 +0800 Message-ID: <83vdjcj39q.fsf@ymail.com> References: <83ocp5j7jl.fsf@ymail.com> 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 1Mpb6B-000782-LA for emacs-orgmode@gnu.org; Mon, 21 Sep 2009 01:06:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mpb67-00077b-So for emacs-orgmode@gnu.org; Mon, 21 Sep 2009 01:06:03 -0400 Received: from [199.232.76.173] (port=35849 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mpb67-00077Y-NT for emacs-orgmode@gnu.org; Mon, 21 Sep 2009 01:05:59 -0400 Received: from n18.bullet.mail.mud.yahoo.com ([68.142.206.145]:29674) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Mpb67-0002Lv-6m for emacs-orgmode@gnu.org; Mon, 21 Sep 2009 01:05:59 -0400 In-Reply-To: <83ocp5j7jl.fsf@ymail.com> (Water Lin's message of "Mon, 21 Sep 2009 11:33:34 +0800") 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: Emacs-orgmode@gnu.org Water Lin writes: > I am using org to publish some context to html now. There are some code > in my file, so I need to keep the code original even don't lose the > spaces. > > But even I used @
 @
at the begin and end of my code, after I > published the context, the spaces disappeared withou trace! > > How can I keep the spaces? > > I am using command > C-u M-x org-export-region-as-html > to publish my file. I think the following way is Ok: #+BEGIN_SRC emacs-lisp (defun org-xor (a b) "Exclusive or." (if a (not b) b)) #+END_SRC The link is : ------ http://orgmode.org/manual/Literal-examples.html#Literal-examples -- Water Lin's blog: http://blog.waterlin.org Email: WaterLin@ymail.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com