emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@supelec.fr>
To: emacs-orgmode@gnu.org
Subject: Re: Problem with some src blocks
Date: Sat, 27 Oct 2012 12:00:25 +0200	[thread overview]
Message-ID: <CAFgFV9M-aQ5Y5ySxeRhJoOrLnrZ5XzAVw1ZChcFNPQJ8erYiHA@mail.gmail.com> (raw)
In-Reply-To: <CAFgFV9OqoFzDO+04XC8jQvata=diUJfMqfinhLTAjyoYTC7raA@mail.gmail.com>

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

      parent reply	other threads:[~2012-10-27 10:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [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=CAFgFV9M-aQ5Y5ySxeRhJoOrLnrZ5XzAVw1ZChcFNPQJ8erYiHA@mail.gmail.com \
    --to=fabrice.popineau@supelec.fr \
    --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).