Xml_node: skip leading whitespace in with_raw_node
This patch makes the 'with_raw_node' method more useful in situations where content of an Xml_node is fed into an Xml_generator, i.e., the rules report/rom mechanism of the window layouter.
This commit is contained in:
parent
bbe1bf9c3a
commit
c340f57207
|
@ -760,7 +760,8 @@ class Genode::Xml_node
|
||||||
template <typename FN>
|
template <typename FN>
|
||||||
void with_raw_node(FN const &fn) const
|
void with_raw_node(FN const &fn) const
|
||||||
{
|
{
|
||||||
fn(_addr, _tags.end.next_token().start() - _addr);
|
char const *start_ptr = _tags.start.token().start();
|
||||||
|
fn(start_ptr, _tags.end.next_token().start() - start_ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user