Skip to content
Snippets Groups Projects
Commit 22f1c81e authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Strip Ctrl-A codes from extended file descriptions

I'm doing this manually with String.replace() because the "built-in"
strip_ctrl_a() function doesn't expand ^A/ (conditional line-break) as it
would need to.
parent de72961d
No related branches found
No related tags found
No related merge requests found
...@@ -107,7 +107,7 @@ function dir_index(dir) ...@@ -107,7 +107,7 @@ function dir_index(dir)
write('<td class="desc" onclick="showExtDesc(event)">'); write('<td class="desc" onclick="showExtDesc(event)">');
write(utf8_encode(f.desc || '')); write(utf8_encode(f.desc || ''));
if (f.extdesc !== undefined) { if (f.extdesc !== undefined) {
write('<div class="extdesc invisible">' + utf8_encode(f.extdesc) + '</div>'); write('<div class="extdesc invisible">' + utf8_encode(f.extdesc.replace(/\x01\//g, "\n").replace(/\x01./g, '')) + '</div>');
} }
write('</td>'); write('</td>');
writeln("</tr>"); writeln("</tr>");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment