* [babel] trimming tangled code
@ 2009-11-04 15:00 "Martin G. Skjæveland"
2009-11-04 22:19 ` Eric Schulte
0 siblings, 1 reply; 2+ messages in thread
From: "Martin G. Skjæveland" @ 2009-11-04 15:00 UTC (permalink / raw)
To: emacs-orgmode
Hi all,
I'm using org-babel to tangle XML documents. That works fine (thanks to
help from Eric S. on this list yesterday), except it adds(?) space in
the beginning (and end) of the output document and front of the xml
declaration thus making an invalid XML document. Is it possible to trim
this space?
My tangled file looks like:
--8<---------------cut here---------------start------------->8---
<?xml version="1.0" encoding="utf-8"?>
<XML></XML>
--8<---------------cut here---------------end------------->8---
I would prefer:
--8<---------------cut here---------------start------------->8---
<?xml version="1.0" encoding="utf-8"?>
<XML></XML>
--8<---------------cut here---------------end------------->8---
Thanks!
Martin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [babel] trimming tangled code
2009-11-04 15:00 [babel] trimming tangled code "Martin G. Skjæveland"
@ 2009-11-04 22:19 ` Eric Schulte
0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2009-11-04 22:19 UTC (permalink / raw)
To: Martin G. Skjæveland; +Cc: emacs-orgmode
Hi Martin,
I just pushed up some changes to the org-babel-tangle functionality
which should fix this problem.
Best -- Eric
"Martin G. Skjæveland" <martige@ifi.uio.no> writes:
> Hi all,
>
> I'm using org-babel to tangle XML documents. That works fine (thanks to
> help from Eric S. on this list yesterday), except it adds(?) space in
> the beginning (and end) of the output document and front of the xml
> declaration thus making an invalid XML document. Is it possible to trim
> this space?
>
> My tangled file looks like:
>
>
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <XML></XML>
>
>
>
> I would prefer:
>
> <?xml version="1.0" encoding="utf-8"?>
> <XML></XML>
>
>
> Thanks!
> Martin
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-04 22:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-04 15:00 [babel] trimming tangled code "Martin G. Skjæveland"
2009-11-04 22:19 ` Eric Schulte
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).