emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* example blocks remove initial whitespace
@ 2013-08-11 22:39 Samuel Wales
  2013-08-12  7:57 ` Sebastien Vauban
  0 siblings, 1 reply; 5+ messages in thread
From: Samuel Wales @ 2013-08-11 22:39 UTC (permalink / raw)
  To: emacs-orgmode

#+BEGIN_EXAMPLE
                         PR
                 /////////\\\\\\\\\
#+END_EXAMPLE

<pre class="example">
        PR
/////////\\\\\\\\\
</pre>

This must be deliberate, but I don't know how to disable that feature.

Thanks.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY can get it.

Denmark: free Karina Hansen NOW.

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

* Re: example blocks remove initial whitespace
  2013-08-11 22:39 example blocks remove initial whitespace Samuel Wales
@ 2013-08-12  7:57 ` Sebastien Vauban
  2013-08-12 17:46   ` Samuel Wales
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastien Vauban @ 2013-08-12  7:57 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Samuel Wales wrote:
> #+BEGIN_EXAMPLE
>                          PR
>                  /////////\\\\\\\\\
> #+END_EXAMPLE
>
> <pre class="example">
>         PR
> /////////\\\\\\\\\
> </pre>
>
> This must be deliberate, but I don't know how to disable that feature.

Try the following:

  ;; preserve spaces and `tab' characters in source code blocks
  (setq org-src-preserve-indentation t)

Best regards,
  Seb

-- 
Sebastien Vauban

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

* Re: example blocks remove initial whitespace
  2013-08-12  7:57 ` Sebastien Vauban
@ 2013-08-12 17:46   ` Samuel Wales
  2013-08-14  5:43     ` Sebastien Vauban
  0 siblings, 1 reply; 5+ messages in thread
From: Samuel Wales @ 2013-08-12 17:46 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: emacs-orgmode

On 8/12/13, Sebastien Vauban <sva-news@mygooglest.com> wrote:
> Try the following:
>
>   ;; preserve spaces and `tab' characters in source code blocks
>   (setq org-src-preserve-indentation t)
>
> Best regards,

Hi Sebastien,

That did not work for me.  Does that work for you?

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY can get it.

Denmark: free Karina Hansen NOW.

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

* Re: example blocks remove initial whitespace
  2013-08-12 17:46   ` Samuel Wales
@ 2013-08-14  5:43     ` Sebastien Vauban
  2013-08-14  6:27       ` Samuel Wales
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastien Vauban @ 2013-08-14  5:43 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Samuel,

Samuel Wales wrote:
> On 8/12/13, Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org> wrote:
>> Try the following:
>>
>>   ;; preserve spaces and `tab' characters in source code blocks
>>   (setq org-src-preserve-indentation t)
>
> That did not work for me.  Does that work for you?

With the minimal Emacs config file:

--8<---------------cut here---------------start------------->8---
;; .emacs-minimal.el

;; preserve spaces and `tab' characters in source code blocks
(setq org-src-preserve-indentation t)

(message "(info) Loading `%s'...done" load-file-name)

;;; .emacs-minimal.el ends here
--8<---------------cut here---------------end--------------->8---

and the minimal test file:

--8<---------------cut here---------------start------------->8---
Test.

#+BEGIN_EXAMPLE
                         PR
                 /////////\\\\\\\\\
#+END_EXAMPLE
--8<---------------cut here---------------end--------------->8---

I get the following:

--8<---------------cut here---------------start------------->8---
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Test.</title>
...
</head>
<body>

<div id="preamble">

</div>

<div id="content">
<h1 class="title">Test.</h1>




<pre class="example">                         PR
                 /////////\\\\\\\\\
</pre>
...
</html>
--8<---------------cut here---------------end--------------->8---

when exporting with the default Org bundled with GNU Emacs 24.2.91.1
(i386-mingw-nt6.2.9200) of 2012-12-15 on MS-W7-DANI, that is:

    Org-mode version 7.9.2+ (7.9.2+-GNU-Emacs-24-3 (commit 488eea) @
    c:/Program Files (x86)/emacs-24.2.91/lisp/org/)

Best regards,
  Seb

-- 
Sebastien Vauban

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

* Re: example blocks remove initial whitespace
  2013-08-14  5:43     ` Sebastien Vauban
@ 2013-08-14  6:27       ` Samuel Wales
  0 siblings, 0 replies; 5+ messages in thread
From: Samuel Wales @ 2013-08-14  6:27 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: emacs-orgmode

Hi Sebastien,

Thank you for testing it.  With no changes, it works now.

Samuel

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

end of thread, other threads:[~2013-08-14  6:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-11 22:39 example blocks remove initial whitespace Samuel Wales
2013-08-12  7:57 ` Sebastien Vauban
2013-08-12 17:46   ` Samuel Wales
2013-08-14  5:43     ` Sebastien Vauban
2013-08-14  6:27       ` Samuel Wales

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