diff --git a/doc/wget.texi b/doc/wget.texi index f42773e..04d1562 100644 --- a/doc/wget.texi +++ b/doc/wget.texi @@ -2289,7 +2289,11 @@ wget -p http://@var{site}/1.html @end example Note that Wget will behave as if @samp{-r} had been specified, but only -that single page and its requisites will be downloaded. Links from that +that single page and its requisites will be downloaded. +(As with @samp{-r}, the @samp{--include-directories}, address@hidden, @samp{--accept-regex}, and @samp{--reject-regex} +tests are not applied to page requisites.) +Links from that page to external documents will not be followed. Actually, to download a single page and all its requisites (even if they exist on separate websites), and make sure the lot displays properly locally, this author diff --git a/src/recur.c b/src/recur.c index 1469e31..fdb1d2e 100644 --- a/src/recur.c +++ b/src/recur.c @@ -462,6 +462,12 @@ retrieve_tree (struct url *start_url_parsed, struct iri *pi) r = download_child (child, url_parsed, depth, start_url_parsed, blacklist, i); + if (child->link_inline_p && + (r == WG_RR_LIST || r == WG_RR_REGEX)) + { + DEBUGP (("Ignoring decision for page requisite, decided to load it.\n")); + r = WG_RR_SUCCESS; + } if (r == WG_RR_SUCCESS) { ci = iri_new ();