tAdd whitespace inside comment <span> - phroxy - Gopher to HTTP proxy
(HTM) git clone git://git.z3bra.org/phroxy.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 2c74d506ef51934700306ade00e35cf380d35d30
(DIR) parent 35ef9fd13d17108919826f1a39aa37d5f0493bfa
(HTM) Author: Willy Goiffon <dev@z3bra.org>
Date: Thu, 24 Sep 2020 10:41:12 +0200
Add whitespace inside comment <span>
This ensure that the line isn't discarded on HTML display.
Diffstat:
M phroxy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/phroxy.c b/phroxy.c
t@@ -232,7 +232,7 @@ int
printmenu(int fd, char *data)
{
char i, *p, a[LINE_MAX], *f[4];
- char *ifmt = "<div class='item'><span></span><code>%s</code></div>\n";
+ char *ifmt = "<div class='item'><span> </span><code>%s</code></div>\n";
char *afmt = "<div class='item'><span>%s</span><a href='http://%s/%s:%s/%c%s'>%s</a></div>\n";
p = data;