Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leading spaces with echo + keepWords #754

Closed
jcubic opened this issue Feb 28, 2022 · 0 comments
Closed

Leading spaces with echo + keepWords #754

jcubic opened this issue Feb 28, 2022 · 0 comments
Labels
Bug resolved if issue is resolved, it will be open until merge with master

Comments

@jcubic
Copy link
Owner

jcubic commented Feb 28, 2022

Issue summary

When you echo text with longer spaces it means have leading spaces

Expected behavior

Leading spaces should be removed

Actual behavior

There are leading spaces

Steps to reproduce

  1. Open https://codepen.io/jcubic/pen/oNoaGyv?editors=0010
  2. Or use code:
var lines = $.terminal.split_equal('This   is    some    text   with   spaces', 20, true);
term.echo(lines.join('\n'));

This bug is introduced by #738

@jcubic jcubic added the Bug label Feb 28, 2022
@jcubic jcubic added the resolved if issue is resolved, it will be open until merge with master label Feb 28, 2022
@jcubic jcubic closed this as completed Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug resolved if issue is resolved, it will be open until merge with master
Projects
None yet
Development

No branches or pull requests

1 participant