Skip to content
Snippets Groups Projects
Commit 3cdc53c2 authored by rswindell's avatar rswindell
Browse files

FSEditor will now (by default) save messages/files with long-line paragraphs

rather than word-wrapped lines, leaving it to the things that display messages
to perform any line-wrapping as needed.

If you want/need the old behavior, set soft_cr=true in the [fseditor] section
of your ctrl/modopts.ini file (new feature/section).
parent 82db1ea8
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,10 @@ var stat_attr = 0x1f;
var stat_fmt = "\1h\1w\0014 FSEditor v" + REVISION + " - Type \1yCTRL-K\1w for help %s\1>\1n";
var subj,to,from;
var options = load('modopts.js', 'fseditor');
if(!options)
options = {};
function Line(copyfrom)
{
var i;
......@@ -1420,7 +1424,7 @@ function save_file()
alert("Error " + f.error + " opening " + f.name);
return false;
}
var s=make_strings(/* soft-CRs: */true, /* embed-colors: */true);
var s=make_strings(/* soft-CRs: */Boolean(options.soft_cr), /* embed-colors: */true);
f.write(s[0]);
f.close();
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment