aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2007-12-12 21:46:27 +0100
committerjcid <devnull@localhost>2007-12-12 21:46:27 +0100
commitf653aeb9f98382f651795803c5796f4a7a05a7fb (patch)
tree82e6ff7eaf9e2e5c54e52f3a246f4849e6c9bb2a /src
parentbd863ef10ed4431d5cb128ce6af959fc39b14eb0 (diff)
Made the stop button sensitive when loading an image.
Diffstat (limited to 'src')
-rw-r--r--src/bw.c2
-rw-r--r--src/html.cc18
2 files changed, 16 insertions, 4 deletions
diff --git a/src/bw.c b/src/bw.c
index ef8d7bc8..54476f54 100644
--- a/src/bw.c
+++ b/src/bw.c
@@ -135,6 +135,8 @@ void a_Bw_add_client(BrowserWindow *bw, int Key, int Root)
/* --Images progress-bar stuff-- */
a_UIcmd_set_img_prog(bw, bw->NumImagesGot, bw->NumImages, 1);
}
+ if (dList_length(bw->RootClients) + dList_length(bw->ImageClients) == 1)
+ a_UIcmd_set_buttons_sens(bw);
}
/*
diff --git a/src/html.cc b/src/html.cc
index 718e64ce..aab14405 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -4993,10 +4993,20 @@ static void Html_process_tag(DilloHtml *html, char *tag, int tagsize)
Html_test_section(html, ni, IsCloseTag);
/* White space handling */
- if (html->SPCPending && (!SGML_SPCDEL || !IsCloseTag))
- /* SGML_SPCDEL requires space pending and open tag */
- DW2TB(html->dw)->addSpace(S_TOP(html)->style);
- html->SPCPending = FALSE;
+ if (html->SPCPending) {
+ if (SGML_SPCDEL) {
+ /* SGML_SPCDEL requires space pending and open tag */
+ if (!IsCloseTag)
+ DW2TB(html->dw)->addSpace(S_TOP(html)->style);
+ html->SPCPending = FALSE;
+ } else {
+ /* custom space handling: preserve pending space past close tags */
+ if (!IsCloseTag) {
+ DW2TB(html->dw)->addSpace(S_TOP(html)->style);
+ html->SPCPending = FALSE;
+ }
+ }
+ }
/* Tag processing */
ci = S_TOP(html)->tag_idx;