[augeas-devel] [Augeas] #215: xml lens - newlines for nodes within elements
Augeas
trac at fedorahosted.org
Sat Oct 1 13:25:28 UTC 2011
#215: xml lens - newlines for nodes within elements
--------------------------+-------------------------------------------------
Reporter: diecast | Owner: lutter
Type: enhancement | Status: closed
Priority: major | Milestone: next
Component: Augeas | Version: 0.9.0
Resolution: fixed | Keywords:
--------------------------+-------------------------------------------------
Changes (by fgiraldeau):
* status: new => closed
* version: 0.8.0 => 0.9.0
* resolution: => fixed
Comment:
You can #text nodes with new line before the desired element. Here is an
example:
{{{
module Spaces =
let input="
<root>
<a><b></b>
</a>
</root>
"
let input2="
<root>
<a>
<b></b>
</a>
</root>
"
test Xml.lns get input = ?
test Xml.lns get input2 = ?
test Xml.lns put input after insb "#text" "/root/a/b";
set "/root/a/#text" "\n" = input2
}}}
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/215#comment:1>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list