emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How can I keep spaces while publishing html?
@ 2009-09-21  3:33 Water Lin
  2009-09-21  5:05 ` Water Lin
  0 siblings, 1 reply; 2+ messages in thread
From: Water Lin @ 2009-09-21  3:33 UTC (permalink / raw)
  To: Emacs-orgmode


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.

-- 
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 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How can I keep spaces while publishing html?
  2009-09-21  3:33 How can I keep spaces while publishing html? Water Lin
@ 2009-09-21  5:05 ` Water Lin
  0 siblings, 0 replies; 2+ messages in thread
From: Water Lin @ 2009-09-21  5:05 UTC (permalink / raw)
  To: Emacs-orgmode

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 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-21  5:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-21  3:33 How can I keep spaces while publishing html? Water Lin
2009-09-21  5:05 ` Water Lin

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).