From c516c6e3e36678b2144a7fb5ba42908373f20615 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Thu, 30 Jul 2015 01:39:23 +0000 Subject: [PATCH] Go back to the pre-0.75 behaviour of always ending lines with CRLF on output. Previously, this was done as Synchronet didn't natively support re-wrapping to the console screen width (and word_wrap() didn't exist), so fseditor needed a way to distinguish between "soft" and "hard" CRs when unwrapping. This is no longer the case, so the space-newline pair for soft CRs is no longer useful. Instead, it can now cause an issue where a blank line is rendered in some terminals when there is a soft CR after a character in the second-last column. The space was added for FTS-0001 compatability, but since we will now use CRLF pairs, this is no longer an issue. --- exec/fseditor.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/exec/fseditor.js b/exec/fseditor.js index 267e70edf9..e2723672f4 100644 --- a/exec/fseditor.js +++ b/exec/fseditor.js @@ -1061,10 +1061,7 @@ function make_strings(soft,embed_colour) } return(''); }); - if(line[i].hardcr) - str+='\r\n'; - else - str+=' \n'; + str+='\r\n'; attrs+=attrs.substr(-1)+attrs.substr(-1); } } -- GitLab