diff options
author | corvid <corvid@lavabit.com> | 2009-09-17 08:15:20 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2009-09-17 08:15:20 +0000 |
commit | f1393d28f45af32d6c6a4036e8f9b5b1baa52b67 (patch) | |
tree | ac736f6c93bef94d74f17c59b87a566130704408 | |
parent | 36221981b4015a191a4c09f9f6cd44a7895742a1 (diff) |
turn off PrevWasSPC for inline widgets
Noticed that there weren't spaces after the math images in
http://en.wikipedia.org/wiki/Linear_programming
-rw-r--r-- | src/form.cc | 5 | ||||
-rw-r--r-- | src/html.cc | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/form.cc b/src/form.cc index 1575dfe4..920bc548 100644 --- a/src/form.cc +++ b/src/form.cc @@ -549,6 +549,7 @@ void Html_tag_open_input(DilloHtml *html, const char *tag, int tagsize) // strtol(attrbuf, NULL, 10)); } HT2TB(html)->addWidget (embed, html->styleEngine->backgroundStyle()); + html->PrevWasSPC = false; } dFree(type); dFree(name); @@ -592,6 +593,7 @@ void Html_tag_open_isindex(DilloHtml *html, const char *tag, int tagsize) Html_add_input(html, DILLO_HTML_INPUT_INDEX, embed, NULL, NULL, FALSE); HT2TB(html)->addWidget (embed, html->styleEngine->backgroundStyle ()); + html->PrevWasSPC = false; a_Url_free(action); html->InFlags &= ~IN_FORM; @@ -660,6 +662,7 @@ void Html_tag_open_textarea(DilloHtml *html, const char *tag, int tagsize) Html_add_input(html, DILLO_HTML_INPUT_TEXTAREA, embed, name, NULL, false); HT2TB(html)->addWidget (embed, html->styleEngine->backgroundStyle ()); + html->PrevWasSPC = false; dFree(name); } @@ -746,6 +749,7 @@ void Html_tag_open_select(DilloHtml *html, const char *tag, int tagsize) HT2TB(html)->addWidget (embed, html->styleEngine->backgroundStyle ()); Html_add_input(html, type, embed, name, NULL, false); + html->PrevWasSPC = false; a_Html_stash_init(html); dFree(name); } @@ -1910,6 +1914,7 @@ static Embed *Html_input_image(DilloHtml *html, const char *tag, int tagsize) factory->createComplexButtonResource(IM2DW(Image), false); button = new Embed(complex_b_r); HT2TB(html)->addWidget (button, html->styleEngine->style ()); + html->PrevWasSPC = false; // gtk_widget_set_sensitive(widget, FALSE); /* Until end of FORM! */ /* a right button press brings up the image menu */ diff --git a/src/html.cc b/src/html.cc index a8412f43..7243b7b3 100644 --- a/src/html.cc +++ b/src/html.cc @@ -2160,6 +2160,7 @@ static void Html_tag_open_img(DilloHtml *html, const char *tag, int tagsize) Image = a_Html_image_new(html, tag, tagsize, url); HT2TB(html)->addWidget((Widget*)Image->dw, html->styleEngine->style()); + html->PrevWasSPC = false; /* Image maps */ if (a_Html_get_attr(html, tag, tagsize, "ismap")) { |