+2004-11-18 Hans-Andreas Engel <engel@node.ch>
+
+ * http.c: Enable --convert-links (-k) when a single page is downloaded
+ via --output-document (-O).
+
2004-11-18 Mauro Tortonesi <mauro@deepspace6.net>
* connect.c: Minor correction to the comment in front of fd_peek.
/* Determine the local filename. */
if (local_file && *local_file)
hstat.local_file = local_file;
- else if (local_file)
+ else if (local_file && !opt.output_document)
{
*local_file = url_file_name (u);
hstat.local_file = local_file;
{
dummy = url_file_name (u);
hstat.local_file = &dummy;
+ /* be honest about where we will save the file */
+ if (local_file && opt.output_document)
+ *local_file = HYPHENP (opt.output_document) ? NULL : xstrdup (opt.output_document);
}
if (!opt.output_document)
*hstat.local_file to tack on ".html". */
if (!opt.output_document)
locf = *hstat.local_file;
- else
- locf = opt.output_document;
/* Time? */
tms = time_str (NULL);