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

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

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

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

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,
Received on Monday, 17 May 2010 22:38:46 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:57 UTC