all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Encoding differences between Emacs and Emacsclient?
Date: Thu, 26 Sep 2013 23:26:43 +0200	[thread overview]
Message-ID: <87mwmzff58.fsf@gmail.com> (raw)


Hi List,

I call 'emacs -Q --batch' from another program and let it export an Org
file to html and return the result als string. Works fine so far.

To speed things up, I started an 'emacs -Q --daemon=my-emacs-server' and
now call it via emacsclient. Otherwise I do exactly the same as before.

But know the returned html is full of \n that are printed when loading
the html file in a browser:

,------------------------------------------------------------------------
|
| \n\n
| \nThese and quite a lot other markup types are supported:\n
|
| \n
| \n
| \n
| 1.1 Heading # Heading (level 3)
|
| \n
| \n
|
| \nSome italic words mixed with bold words look nice, while
| underlined\ntext is a bit overkill sometimes. An unordered list like\n
|
| \n\n
| \n
| List item 1 # List items\n
| \n
| List item 2\n
| \n
| \n\n
`------------------------------------------------------------------------

What happened here? Does the emacscient/server combination behave
different than emacs it batch mode? Its the same emacs version, both
started with -Q, in both cases only the relevant Org exporter libs
loaded - but what is printed to stdout/stderr looks quite different.

Any tips would be appreciated.

--
cheers,
Thorsten




                 reply	other threads:[~2013-09-26 21:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

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

  git send-email \
    --in-reply-to=87mwmzff58.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=help-gnu-emacs@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 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.