Remove inclusion of sys/socket.h from nntp-thread.c
[claws.git] / src / plugins / litehtml_viewer / litehtml / el_space.cpp
blobf5e3818ca7b767fc86e5694acb046abe4d63a965
1 #include "html.h"
2 #include "document.h"
3 #include "el_space.h"
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 )
16 return true;
18 return false;
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)
28 if(m_text == "\n")
30 return true;
33 return false;
36 bool litehtml::el_space::is_space() const
38 return true;
41 litehtml::string litehtml::el_space::dump_get_name()
43 return "space: \"" + get_escaped_string(m_text) + "\"";