emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Water Lin <WaterLin@ymail.com>
To: Emacs-orgmode@gnu.org
Subject: Re: How can I keep spaces while publishing html?
Date: Mon, 21 Sep 2009 13:05:53 +0800	[thread overview]
Message-ID: <83vdjcj39q.fsf@ymail.com> (raw)
In-Reply-To: <83ocp5j7jl.fsf@ymail.com> (Water Lin's message of "Mon, 21 Sep 2009 11:33:34 +0800")

Water Lin <WaterLin@ymail.com> 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 @<pre> @</pre> 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 

      reply	other threads:[~2009-09-21  5:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-21  3:33 How can I keep spaces while publishing html? Water Lin
2009-09-21  5:05 ` Water Lin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83vdjcj39q.fsf@ymail.com \
    --to=waterlin@ymail.com \
    --cc=Emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).