aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--src/bw.c2
-rw-r--r--src/html.cc18
3 files changed, 17 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index ff8227fa..733176b7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -63,6 +63,7 @@ dillo-fltk2
- Bound preliminar find text support.
- Added line numbers and enabled wrapping in the "View Source" window.
- Added HTTP-1.1's chunked transfer support!
+ - Made the stop button sensitive when loading an image.
Patches: place
+- Fixed a problem with locally-installed dpis.
- Added code for optional image loading (nice interface) very advanced!
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;