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

Long dash is left all alone on line wrap #6

Open
johnpaulwelsh opened this issue May 27, 2016 · 1 comment
Open

Long dash is left all alone on line wrap #6

johnpaulwelsh opened this issue May 27, 2016 · 1 comment

Comments

@johnpaulwelsh
Copy link

Browser: Safari (probably on any browser but this happens to be the one I was on)

The long dash at the end of the first line of The Eyeball is brought to its own line if the page wrap happens on the word "and".

I resized to be sure that there wasn't a space between "and" and the dash, and there is not. So it should probably remain attached to the word "and". Then again, this might not be in your control, or maybe it's not actually a problem. I just don't think it looks good.

longdash

@robwhitaker
Copy link
Owner

This could likely be fixed by wrapping the affected text in <span style="white-space: nowrap;">, but iterating through the text and replacing values during render may be expensive and slow. This is something that should really be done during the parsing step of the Editor and will likely be bundled with the Editor rewrite when the time comes.

@robwhitaker robwhitaker modified the milestone: Editor Rewrite (Elm 0.17) Aug 24, 2016
@robwhitaker robwhitaker self-assigned this Aug 24, 2016
@larouxn larouxn removed the todo label Aug 25, 2016
@robwhitaker robwhitaker removed this from the Editor Rewrite (PureScript) milestone May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants