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

Merge branch 'mlong/sutils' into 'master'

Update sutils.js to format properly inside bbs (reported by jc)

See merge request !55
parents 7df76d2f 8731b6d2
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!55Update sutils.js to format properly inside bbs (reported by jc)
"use strict";
const REVISION = "$Revision: 1.0 $".split(' ')[1];
......@@ -29,7 +28,7 @@ while((!which || which < 1) && !aborted()) {
if (typeof categories !== "undefined") {
var x = 1;
for (var catid in categories) {
printf("%2d. %s\n", x, categories[catid]);
printf("%2d. %s\r\n", x, categories[catid]);
categoryitems[x] = catid;
x++;
};
......@@ -73,7 +72,7 @@ function docategorymenu(catid, catname) {
var x = 1;
for (var iniid in utilitems) {
if (file_exists(js.exec_dir + utilitems[iniid].filename)) {
printf("%2d. %-20s %s\n", x, utilitems[iniid].name, utilitems[iniid].desc);
printf("%2d. %-20s %s\r\n", x, utilitems[iniid].name, utilitems[iniid].desc);
menuitems[x] = iniid;
x++;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment