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

Strange line breaks on hyphens #23

Open
jagill opened this issue Feb 7, 2014 · 2 comments
Open

Strange line breaks on hyphens #23

jagill opened this issue Feb 7, 2014 · 2 comments

Comments

@jagill
Copy link

jagill commented Feb 7, 2014

It seems like, on terminal prompts, term.js inserts a line break on the non-first last hyphen. That is, if there's one hyphen on the line, there is no break. If there are two, it breaks on the second. If there are three or more, it breaks on the last. It'll break dynamically as you are typing, but only as you type a character after the hyphen (in the picture attached, you need to type the b in a-b for it to break as a-<br>b

term js hyphen linebreak

@astephens25
Copy link

-1 This is due to your container being too small for the size of your terminal and causing the whitespace (non-breaking space) to wrap. Either shrink your columns, increase the container size, or try adding "white-space: nowrap;" to your .terminal style. You may also might try adding a style for:

.terminal > div > span {
    display: inline-block;
}

@mingfang
Copy link

Thank you!
This works great for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants