all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problem with some src blocks
@ 2012-10-27  9:50 Fabrice Popineau
  2012-10-27 10:00 ` Nicolas Goaziou
  2012-10-27 10:00 ` Fabrice Popineau
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Popineau @ 2012-10-27  9:50 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I have these lines :

Bla bla bla

#+INCLUDE: "../java/Power2/Power2.java" src java

Bla bla bla

that get exported this way :

<p>
Bla bla bla
</p>

<p>
#+BEGIN_SRC java
public class Power2
...

How is it possible that the src block be exported literally ?
I tried a couple of other java files but it happends only with this one.
(I will look into it but if in the mean time someone has an explanation
and better: a fix !)

Best  regards,

--
Fabrice

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

* Re: Problem with some src blocks
  2012-10-27  9:50 Problem with some src blocks Fabrice Popineau
@ 2012-10-27 10:00 ` Nicolas Goaziou
  2012-10-27 10:00 ` Fabrice Popineau
  1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2012-10-27 10:00 UTC (permalink / raw)
  To: Fabrice Popineau; +Cc: emacs-orgmode

Hello,

Fabrice Popineau <fabrice.popineau@supelec.fr> writes:

> I have these lines :
>
> Bla bla bla
>
> #+INCLUDE: "../java/Power2/Power2.java" src java
>
> Bla bla bla
>
> that get exported this way :
>
> <p>
> Bla bla bla
> </p>
>
> <p>
> #+BEGIN_SRC java
> public class Power2
> ...
>
> How is it possible that the src block be exported literally ?
> I tried a couple of other java files but it happends only with this one.
> (I will look into it but if in the mean time someone has an explanation
> and better: a fix !)

Does it happen with the new exporter? Also, could you provide
Power2.java so I can try to reproduce it?

Thanks.


Regards,

-- 
Nicolas Goaziou

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

* Re: Problem with some src blocks
  2012-10-27  9:50 Problem with some src blocks Fabrice Popineau
  2012-10-27 10:00 ` Nicolas Goaziou
@ 2012-10-27 10:00 ` Fabrice Popineau
  1 sibling, 0 replies; 3+ messages in thread
From: Fabrice Popineau @ 2012-10-27 10:00 UTC (permalink / raw)
  To: emacs-orgmode

Well ... this bothered me for a couple of days, and the reason is  easy:
the lf encoding of the file does not match the one of the buffer where it
gets included. I switched the lf encoding of the java file and it gets included
correctly.

So: is it possible to add something to make sure that the file is
included with the right lf encoding?

Fabrice

2012/10/27 Fabrice Popineau <fabrice.popineau@supelec.fr>:
> Hi,
>
> I have these lines :
>
> Bla bla bla
>
> #+INCLUDE: "../java/Power2/Power2.java" src java
>
> Bla bla bla
>
> that get exported this way :
>
> <p>
> Bla bla bla
> </p>
>
> <p>
> #+BEGIN_SRC java
> public class Power2
> ...
>
> How is it possible that the src block be exported literally ?
> I tried a couple of other java files but it happends only with this one.
> (I will look into it but if in the mean time someone has an explanation
> and better: a fix !)
>
> Best  regards,
>
> --
> Fabrice



-- 
Fabrice Popineau
-----------------------------
SUPELEC
Département Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212
------------------------------

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

end of thread, other threads:[~2012-10-27 10:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-27  9:50 Problem with some src blocks Fabrice Popineau
2012-10-27 10:00 ` Nicolas Goaziou
2012-10-27 10:00 ` Fabrice Popineau

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.