diff options
author | Sebastian Geerken <devnull@localhost> | 2014-11-21 21:58:27 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-11-21 21:58:27 +0100 |
commit | 5d1472c4d56614e2a99b838e35bb893d3e6b67d4 (patch) | |
tree | 95a9101c8875254d44f3ceaa9ca123a402acdf9d /src/html.cc | |
parent | c8d70be980c0ff809e204db089d30aa06c2d06ca (diff) |
No BREAKs anymore around a float.
Diffstat (limited to 'src/html.cc')
-rw-r--r-- | src/html.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/html.cc b/src/html.cc index 843b69ff..8fea74e9 100644 --- a/src/html.cc +++ b/src/html.cc @@ -374,6 +374,11 @@ static void Html_add_textblock(DilloHtml *html, bool addBreaks, int breakSpace) S_TOP(html)->hand_over_break = true; } +static bool Html_will_textblock_be_out_of_flow(DilloHtml *html) +{ + return HT2TB(html)->isStyleOutOfFlow (html->style ()); +} + /* * Create and initialize a new DilloHtml class */ @@ -3859,8 +3864,7 @@ static void Html_check_html5_obsolete(DilloHtml *html, int ni) static void Html_display_block(DilloHtml *html) { - //HT2TB(html)->addParbreak (5, html->styleEngine->wordStyle ()); - Html_add_textblock(html, true, 0); + Html_add_textblock(html, !Html_will_textblock_be_out_of_flow (html), 0); } static void Html_display_inline_block(DilloHtml *html) |