From ab234d68adb745275cca8a91e99ca1d9f9ce1c6c Mon Sep 17 00:00:00 2001 From: corvid Date: Sat, 7 Sep 2013 16:03:38 +0000 Subject: the WBR element itself --- src/html.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/html.cc') diff --git a/src/html.cc b/src/html.cc index f6ad2e18..adfd818e 100644 --- a/src/html.cc +++ b/src/html.cc @@ -3192,6 +3192,14 @@ static void Html_tag_close_par(DilloHtml *html) HT2TB(html)->addParbreak (9, html->styleEngine->wordStyle ()); } +/* + * "The wbr element represents a line break opportunity." + */ +static void Html_tag_content_wbr(DilloHtml *html, const char *tag, int tagsize) +{ + HT2TB(html)->addBreakOption(html->styleEngine->wordStyle (), true); +} + /* * Function index for the open, content, and close functions for each tag @@ -3334,8 +3342,8 @@ const TagInfo Tags[] = { {"tt", B8(010101),'R',2, Html_tag_open_default, NULL, NULL}, {"u", B8(010101),'R',2, Html_tag_open_default, NULL, NULL}, {"ul", B8(011010),'R',2, Html_tag_open_ul, NULL, NULL}, - {"var", B8(010101),'R',2, Html_tag_open_default, NULL, NULL} - + {"var", B8(010101),'R',2, Html_tag_open_default, NULL, NULL}, + {"wbr", B8(010101),'F',0, Html_tag_open_default, Html_tag_content_wbr, NULL} }; #define NTAGS (sizeof(Tags)/sizeof(Tags[0])) -- cgit v1.2.3