Skip to content
Snippets Groups Projects
Commit 20503fea authored by Kayz's avatar Kayz
Browse files

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

parent 599a754b
No related branches found
No related tags found
No related merge requests found
"use strict"; "use strict";
const REVISION = "$Revision: 1.0 $".split(' ')[1]; const REVISION = "$Revision: 1.0 $".split(' ')[1];
...@@ -29,7 +28,7 @@ while((!which || which < 1) && !aborted()) { ...@@ -29,7 +28,7 @@ while((!which || which < 1) && !aborted()) {
if (typeof categories !== "undefined") { if (typeof categories !== "undefined") {
var x = 1; var x = 1;
for (var catid in categories) { for (var catid in categories) {
printf("%2d. %s\n", x, categories[catid]); printf("%2d. %s\r\n", x, categories[catid]);
categoryitems[x] = catid; categoryitems[x] = catid;
x++; x++;
}; };
...@@ -73,7 +72,7 @@ function docategorymenu(catid, catname) { ...@@ -73,7 +72,7 @@ function docategorymenu(catid, catname) {
var x = 1; var x = 1;
for (var iniid in utilitems) { for (var iniid in utilitems) {
if (file_exists(js.exec_dir + utilitems[iniid].filename)) { 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; menuitems[x] = iniid;
x++; x++;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment