diff options
Diffstat (limited to 'src/IO.c')
-rw-r--r-- | src/IO.c | 70 |
1 files changed, 35 insertions, 35 deletions
@@ -134,7 +134,7 @@ static int IOFileListener(const cGH *GH, const char *filename, entry->linkname = linknameString; if( filelist == NULL ) - filelist = HTTPD_FileList_New(); + filelist = HTTPD_FileList_New(); AppendFile( filelist, entry ); /* Need to mangle the filename to get a decent linkname */ @@ -184,7 +184,7 @@ buildList( const FileList *list, String * message, size_t itemNo, int depth ) { IndentAndConcatCString( message, "<tr>", depth ); ConcatCString( message, "<td class=\"spacer\"> </td>" - "<td class=\"thorn\" colspan=\"4\">" ); + "<td class=\"thorn\" colspan=\"4\">" ); Concat( message, file->thorn ); IndentAndConcatCString( message, "</td></tr>\n", depth ); i = buildList( list, message, i, 2 ); @@ -200,7 +200,7 @@ buildList( const FileList *list, String * message, size_t itemNo, int depth ) IndentAndConcatCString( message, "<tr>", depth ); ConcatCString( message, "<td class=\"spacer\"> </td>" "<td class=\"spacer\"> </td>\n" - "<td class=\"slice\">" ); + "<td class=\"slice\">" ); Concat( message, file->slice ); ConcatCString( message, "\n" ); @@ -249,21 +249,21 @@ static int AdvertisedFilePage(const cGH *GH, httpRequest *request, void *data) HTTP_SetHeadInfo( message); HTTP_Send( request, "<style type=\"text/css\">" - "\t.files td { text-align: left; font-family: sans-serif;\n" - "\t padding-left: 1ex; padding-right: 1ex; }\n" - "\t.files td.variable { background-color: #ff9;\n" - "\t font-weight: bold; }\n" - "\t.files td.thorn { background-color: #dff;\n" - "\t color: black; }\n" - "\t.files td.slice { background-color: #fde;\n" - "\t font-family: monospace; }\n" - "\t.files td.link { \n" - " }\n" - "\t.files td.desc { background-color: #dff;\n" - "\t font-style: italic; }\n" - "\t#filescaption { border-bottom: thin black solid;\n" - "\t margin-bottom: 1em; }\n" - "\t</style>\n"); + "\t.files td { text-align: left; font-family: sans-serif;\n" + "\t padding-left: 1ex; padding-right: 1ex; }\n" + "\t.files td.variable { background-color: #ff9;\n" + "\t font-weight: bold; }\n" + "\t.files td.thorn { background-color: #dff;\n" + "\t color: black; }\n" + "\t.files td.slice { background-color: #fde;\n" + "\t font-family: monospace; }\n" + "\t.files td.link { \n" + " }\n" + "\t.files td.desc { background-color: #dff;\n" + "\t font-style: italic; }\n" + "\t#filescaption { border-bottom: thin black solid;\n" + "\t margin-bottom: 1em; }\n" + "\t</style>\n"); HTTP_SendString( request, message ); HTTP_Send( request, "</head>\n<body>\n"); @@ -287,9 +287,9 @@ static int AdvertisedFilePage(const cGH *GH, httpRequest *request, void *data) "<a href=\"/Parameters/index.html\">parameter steering page</a>" "</p>\n"); HTTP_Send( request, - "<div class=\"centered\">\n" + "<div class=\"centered\">\n" "<table class=\"files\" id=\"filescaption\" " - "frame=\"below\" cellpadding=\"0\" cellspacing=\"0\">\n" + "frame=\"below\" cellpadding=\"0\" cellspacing=\"0\">\n" "<tr><td class=\"variable\">\n" "Variable</td><td class=\"thorn\">Thorn</td>\n" "<td class=\"slice\"> Slice</td><td class=\"file\"> File</td>\n" @@ -301,7 +301,7 @@ static int AdvertisedFilePage(const cGH *GH, httpRequest *request, void *data) SortFilesAccordingTo( filelist, Variable_Thorn_Slice ); HTTP_Send( request, "<table cellpadding=\"0\" cellspacing=\"0\"" - " class=\"files\">\n"); + " class=\"files\">\n"); buildList( filelist, message, 0, 0 ); HTTP_SendString( request, message); @@ -448,14 +448,14 @@ static int ViewportFilePage(const cGH *GH, httpRequest *request, void *data) HTTP_Send( request, "<h1>Viewport</h1>\n"); HTTP_Send( request, - "<p>This page displays certain types of the output files \n" - "from the <a href=\"/Output/index.html\">download</a> page \n" - "as images (currently only JPEGs [mime type image/jpeg]).</p>\n" - "<p>Many IO methods have <dfn>steerable</dfn> parameters which \n" - "allow you to e.g. add fields and customise behaviour.\n" - "Depending on your authorisation, you can access the \n" - "<a href=\"/Parameters/index.html\">parameter steering page</a></p>\n" - "<div class=\"centered\">\n"); + "<p>This page displays certain types of the output files \n" + "from the <a href=\"/Output/index.html\">download</a> page \n" + "as images (currently only JPEGs [mime type image/jpeg]).</p>\n" + "<p>Many IO methods have <dfn>steerable</dfn> parameters which \n" + "allow you to e.g. add fields and customise behaviour.\n" + "Depending on your authorisation, you can access the \n" + "<a href=\"/Parameters/index.html\">parameter steering page</a></p>\n" + "<div class=\"centered\">\n"); SortFilesAccordingTo( filelist, Variable_Thorn_Slice ); @@ -467,11 +467,11 @@ static int ViewportFilePage(const cGH *GH, httpRequest *request, void *data) if (!foundone) { HTTP_Send( request, - "<table class=\"files\" cellspacing=\"5\" cellpadding=\"5\" " - "rules=\"groups\" >\n" - "<thead>\n<tr><th>Variable<br />Slice</th>" - "<th>Description</th><th>Image</th></tr>\n</thead>\n"); - foundone = 1; + "<table class=\"files\" cellspacing=\"5\" cellpadding=\"5\" " + "rules=\"groups\" >\n" + "<thead>\n<tr><th>Variable<br />Slice</th>" + "<th>Description</th><th>Image</th></tr>\n</thead>\n"); + foundone = 1; } HTTP_Send( request, "<tr>\n" ); HTTP_Send( request, "<td><span class=\"variable\">" ); @@ -502,7 +502,7 @@ static int ViewportFilePage(const cGH *GH, httpRequest *request, void *data) else { HTTP_Send( request, "<strong>\n<p>No viewable images registered!</p>\n" - "</strong>\n"); + "</strong>\n"); } HTTP_Send( request, "</div>\n"); |