all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Encoding differences between Emacs and Emacsclient?
@ 2013-09-26 21:26 Thorsten Jolitz
  0 siblings, 0 replies; only message in thread
From: Thorsten Jolitz @ 2013-09-26 21:26 UTC (permalink / raw)
  To: help-gnu-emacs


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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-26 21:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-26 21:26 Encoding differences between Emacs and Emacsclient? Thorsten Jolitz

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.