diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2010-09-10 12:49:41 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2010-09-10 12:49:41 +0000 |
commit | 150e4d18bbb1093e483483a0c5150c36be1e81e7 (patch) | |
tree | 55955ddb8050763f5589f192f6751b9a8c577165 /content | |
parent | 2077918805c175ecefeb25dd38f78d2d5b3a3ca2 (diff) | |
download | netsurf-150e4d18bbb1093e483483a0c5150c36be1e81e7.tar.gz netsurf-150e4d18bbb1093e483483a0c5150c36be1e81e7.tar.bz2 |
Add a bit of padding to bottom of directory listings. Tidy code indentation.
svn path=/trunk/netsurf/; revision=10752
Diffstat (limited to 'content')
-rw-r--r-- | content/dirlist.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/content/dirlist.c b/content/dirlist.c index 1f58154e2..7e9528227 100644 --- a/content/dirlist.c +++ b/content/dirlist.c @@ -54,15 +54,15 @@ static char* dirlist_filesize_unit(unsigned long bytesize); bool dirlist_generate_top(char *buffer, int buffer_length) { int error = snprintf(buffer, buffer_length, - "<html>\n" + "<html>\n" "<head>\n" "<style>\n" "html, body { margin: 0; padding: 0; }\n" - "body { background-color: #abf; }\n" + "body { background-color: #abf; padding-bottom: 2em; }\n" "h1 { padding: 5mm; margin: 0; " "border-bottom: 2px solid #bcf; }\n" "p { padding: 2px 5mm; margin: 0; }\n" - "div { display: table; width: 94%%; margin: 5mm auto 0 auto; " + "div { display: table; width: 94%%; margin: 5mm auto 2em auto; " "padding: 0; }\n" "a, strong { display: table-row; margin: 0; padding: 0; }\n" "a.odd { background-color: #bcf; }\n" @@ -75,7 +75,7 @@ bool dirlist_generate_top(char *buffer, int buffer_length) "a.dir > span.type { font-weight: bold; }\n" "span.size { text-align: right; padding-right: 0.3em; }\n" "span.size + span.size { text-align: left; " - "padding-right: 0; }\n"); + "padding-right: 0; }\n"); if (error < 0 || error >= buffer_length) /* Error or buffer too small */ return false; @@ -335,9 +335,9 @@ bool dirlist_generate_row(bool even, bool directory, char *url, char *name, bool dirlist_generate_bottom(char *buffer, int buffer_length) { int error = snprintf(buffer, buffer_length, - "</div>\n" - "</body>\n" - "</html>\n"); + "</div>\n" + "</body>\n" + "</html>\n"); if (error < 0 || error >= buffer_length) /* Error or buffer too small */ return false; |