aboutsummaryrefslogtreecommitdiff
path: root/src/html.cc
diff options
context:
space:
mode:
authorcorvid <corvid@dillo.org>2013-09-07 16:03:38 +0000
committercorvid <corvid@dillo.org>2013-09-07 16:03:38 +0000
commitab234d68adb745275cca8a91e99ca1d9f9ce1c6c (patch)
tree59c03c869601a5d5fda3a8f3f46123760e732336 /src/html.cc
parent314e08e0a07ce4b6fe88b2e9fd2b94e118622799 (diff)
the WBR element itself
Diffstat (limited to 'src/html.cc')
-rw-r--r--src/html.cc12
1 files changed, 10 insertions, 2 deletions
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 ());
}
+/*
+ * <WBR> "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]))