about summary refs log tree commit diff stats
path: root/adapter/format/dirlist2html.nim
Commit message (Collapse)AuthorAgeFilesLines
* dirlist2html: fix setlocale callbptato2025-01-041-1/+1
|
* Misc character display fixesbptato2024-12-221-1/+19
| | | | | | | | | | | | | | | | | | * fix luwrap comparison function * strip high unicode controls in term/pager * use wcwidth in dirlist2html * remove combining category from strwidth * remove unused "disallowed" field from lineedit My initial goal with switching to wcwidth in dirlist2html was just to get rid of the outdated combining map in charwidth_gen. Then I realized that layout will normalize those out anyway, so we don't actually have to deal with them anywhere. Also, I found a few bugs in the process; high unicode control chars not being stripped out was a particularly bad one, as it allows for pages to mess up the terminal output. (Easiest way to replicate: just open a random binary file without this patch.)
* twtstr: improve content type parameter handlingbptato2024-12-221-1/+1
| | | | | * accept quoted-string * quote values in setContentTypeAttr
* sftp: switch to libssh2bptato2024-10-261-1/+3
| | | | | | | | | | | | | | | | | | | Just to remove a level of indirection; the libcurl API is annoying to deal with when you don't even need asynchrony. It doesn't change anything in actual dependencies, because libcurl uses libssh2 too - however, now only http depends on libcurl, which makes reducing it to an optional module feasible. Still, I've listed libssh2 (along with OpenSSL - long overdue) in the readme just in case some OS doesn't pull in the headers by default as a libcurl dependency. Also, fix some bugs: * fix missing CWD command in FTP * resolve directories even if they don't end in / * allow links without -> in dirlist
* dirlist2html: remove redundant slashbptato2024-10-141-5/+2
|
* dirlist2html: fix heisenbug, refactorbptato2024-10-131-72/+74
| | | | | | | | so it turns out you *can't* just deref refcounted strings through a ptr... the entire algorithm was a mess anyway, so I've just re-done the sorting with refc.
* dirlist: separate out into dirlist2htmlbptato2024-10-121-0/+172
Now the dirlist parser lives inside dirlist2html, and the file protocol just emulates FTP LIST.
a417234faaf3977e'>^
3d6450f2 ^


3d6450f2 ^

267fd885 ^
3d6450f2 ^
3d6450f2 ^
4cc517e0 ^
3d6450f2 ^




261b1b80 ^
11a5fffa ^
b8475380 ^
b8475380 ^




d9820d82 ^
b8475380 ^
d9820d82 ^
f94442fe ^
d9820d82 ^
b8475380 ^

d9820d82 ^
f94442fe ^
b8475380 ^
d9820d82 ^
f94442fe ^
b8475380 ^

dd63f4dc ^
b8475380 ^

d9820d82 ^
b8475380 ^
3d6450f2 ^
3d6450f2 ^


b8475380 ^
3d6450f2 ^




b31455f8 ^
3d6450f2 ^







d9820d82 ^
f94442fe ^
d9820d82 ^
f94442fe ^
d9820d82 ^
3d6450f2 ^
d9820d82 ^
f94442fe ^
d9820d82 ^
f94442fe ^
3d6450f2 ^
f94442fe ^
3d6450f2 ^

f94442fe ^
3d6450f2 ^



f94442fe ^

3d6450f2 ^








3d910813 ^
3d6450f2 ^
3d910813 ^
3d6450f2 ^
f94442fe ^
3d6450f2 ^

3d910813 ^
3d6450f2 ^

3d910813 ^
3d6450f2 ^



b31455f8 ^








d9820d82 ^
3d6450f2 ^


d9820d82 ^
3d910813 ^
f94442fe ^
3d6450f2 ^







3d910813 ^
3d6450f2 ^
3d910813 ^
3d6450f2 ^
f94442fe ^
3d6450f2 ^

3d910813 ^
3d6450f2 ^

3d910813 ^
3d6450f2 ^



3d910813 ^
3d6450f2 ^

3d910813 ^
3d6450f2 ^



d9820d82 ^
3d6450f2 ^


d9820d82 ^
3d910813 ^
f94442fe ^
3d6450f2 ^





b31455f8 ^











6ee77ba7 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212