Skip to content

Commit

Permalink
fix split equal leading spaces #825
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Dec 30, 2023
1 parent b82e1df commit f57d0d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -5865,9 +5865,9 @@
}
if (settings.trim || settings.keepWords) {
output = output.replace(/( |\s)+$/g, '');
if (!leading_spaces) {
output = output.replace(/^( |\s)+/g, '');
}
}
if (!leading_spaces) {
output = output.replace(/^( |\s)+/g, '');
}
first_index = (new_index || data.index) + 1;
if (prev_format) {
Expand Down

0 comments on commit f57d0d2

Please sign in to comment.