W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2010

Observe xml:space="preserve" when tidying XML

From: Axel Rose <axel.roeslein@googlemail.com>
Date: Mon, 17 May 2010 15:11:00 +0200
Message-ID: <AANLkTilI1uZPtKaedKxvuXovEfOasfBaKxcsyz5zkeoO@mail.gmail.com>
To: html-tidy@w3.org
Hello all,

when tidying some XML as this

<root>
  <node xml:space="preserve">a text</node>
</root>

I cannot achieve that "tidy" observes the xml:space attribute. The output
has the text node "a text" in a new line like this:

<root>
  <node xml:space="preserve">
a text
</node>
</root>

These are me settings:
---
add-xml-space: yes
bare: yes
char-encoding: raw
clean: yes
drop-font-tags: yes
drop-proprietary-attributes: yes
gnu-emacs: yes
hide-endtags: yes
indent: auto
indent-cdata: yes
indent-spaces: 2
input-xml: yes
replace-color: yes
tab-size: 2
wrap: 0
---


Thanks for any help,
Axel.
Received on Monday, 17 May 2010 22:38:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:14:00 GMT