Skip to content

Commit

Permalink
Fix utf8 forced LF
Browse files Browse the repository at this point in the history
  • Loading branch information
andyherbert committed May 12, 2022
1 parent c98b52a commit a03ed76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/libtextmode/ansi.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ function encode_as_ansi(doc, save_without_sauce, {utf8 = false} = {}) {
}
}
}
if (i % doc.columns == 0) {
if (utf8 && (i % doc.columns == 0)) {
output.push(10);
}
if (code == 32 && bg == 0) {
Expand Down

0 comments on commit a03ed76

Please sign in to comment.