5 litehtml::el_space::el_space(const char* text
, const std::shared_ptr
<document
>& doc
) : el_text(text
, doc
)
9 bool litehtml::el_space::is_white_space() const
11 white_space ws
= css().get_white_space();
12 if( ws
== white_space_normal
||
13 ws
== white_space_nowrap
||
14 ws
== white_space_pre_line
)
21 bool litehtml::el_space::is_break() const
23 white_space ws
= css().get_white_space();
24 if( ws
== white_space_pre
||
25 ws
== white_space_pre_line
||
26 ws
== white_space_pre_wrap
)
36 bool litehtml::el_space::is_space() const
41 litehtml::string
litehtml::el_space::dump_get_name()
43 return "space: \"" + get_escaped_string(m_text
) + "\"";