1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

Made directory listings XML compliant

This commit is contained in:
Witold Filipczyk 2006-07-31 13:24:39 +02:00 committed by Witold Filipczyk
parent 7af9cf5ebc
commit 2e818771d0
3 changed files with 3 additions and 3 deletions

View File

@ -196,7 +196,7 @@ list_directory(struct connection *conn, unsigned char *dirpath,
add_dir_entries(entries, dirpath, page);
if (!add_to_string(page, "</pre>\n<hr>\n</body>\n</html>\n")) {
if (!add_to_string(page, "</pre>\n<hr/>\n</body>\n</html>\n")) {
done_string(page);
return S_OUT_OF_MEM;
}

View File

@ -167,7 +167,7 @@ fsp_directory(FSP_SESSION *ses, struct uri *uri)
fsp_closedir(dir);
}
end:
puts("</pre><hr></body></html>");
puts("</pre><hr/></body></html>");
fsp_close_session(ses);
exit(0);
}

View File

@ -1367,7 +1367,7 @@ out_of_mem:
add_fragment(conn->cached, conn->from, str, sizeof(str) - 1); \
conn->from += (sizeof(str) - 1); }
if (ftp->dir) ADD_CONST("</pre>\n<hr>\n</body>\n</html>");
if (ftp->dir) ADD_CONST("</pre>\n<hr/>\n</body>\n</html>");
close_socket(conn->data_socket);