]> Nishi Git Mirror - tewi.git/commitdiff
use space not emsp
authorNishi <nishi@nishi.boats>
Wed, 18 Sep 2024 12:30:33 +0000 (12:30 +0000)
committerNishi <nishi@nishi.boats>
Wed, 18 Sep 2024 12:30:33 +0000 (12:30 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@60 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/install.nsi
Server/server.c

index f361faaa98fd2fb0a2cf9c8f3da357e11099c0f1..b0a60cff93463474c9111434781d330b1a3beafd 100644 (file)
@@ -12,6 +12,7 @@ UninstPage instfiles
 Section
        CreateDirectory "$INSTDIR\etc"
        CreateDirectory "$INSTDIR\www"
+       CreateDirectory "$INSTDIR\www\icons"
        CreateDirectory "$INSTDIR\bin"
        SetOutPath "$INSTDIR\bin"
        File "tewi.exe"
@@ -19,6 +20,8 @@ Section
        File /oname=tewi.conf.default "../example-win.conf"
        SetOutPath "$INSTDIR\www"
        File /oname=index.html "../itworks.html"
+       SetOutPath "$INSTDIR\www\icons"
+       File "../Icons/*.png"
 
        CreateDirectory "$SMPROGRAMS\Tewi HTTPd"
        CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Start Tewi HTTPd.lnk" "$INSTDIR\bin\tewi.exe" ""
index 9140faf3ebcc487bf896e612e51a86b05ce6db90..7fa31c4dc0e8770124b0acd5f5b85b5fb735f15a 100644 (file)
@@ -620,8 +620,8 @@ void tw_server_pass(int sock, bool ssl, int port, SOCKADDR addr) {
                                                                        addstring(&str, "<tr>\n");
                                                                        addstring(&str, "       <td><img src=\"%s\" alt=\"icon\"></td>\n", icon);
                                                                        addstring(&str, "       <td><a href=\"%l\"><code>%h</code></a></td>\n", items[i], itm);
-                                                                       addstring(&str, "       <td><code>&emsp;&emsp;%h&emsp;&emsp;</code></td>\n", showmime);
-                                                                       addstring(&str, "       <td><code>&emsp;&emsp;%s&emsp;&emsp;</code></td>\n", size);
+                                                                       addstring(&str, "       <td><code>  %h  </code></td>\n", showmime);
+                                                                       addstring(&str, "       <td><code>  %s  </code></td>\n", size);
                                                                        addstring(&str, "</tr>\n");
                                                                        free(itm);
                                                                }