-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Use <br>
for zero-width white spaces
#1971
Comments
Hey @mattkrick, those are good points. For context, we actually used to have Quick searching... here's a handful of PRs in the area: #1644 #1388 #339 #1322 It sounds like it might have been an IME-related fix. But maybe there is another way to fix the IME-related issue that gets around the React re-rendering problem, and that means we can still preserve I'm okay with reverting it if someone wants to make that PR, and having the IME issue fixed in another attempt afterwards, and not having them dependent on each other. As a side note, could I ask that you tone down the condescension in your issues? These kinds of browser-related, IME-related things are very finicky, and a handful of people have super-helpfully contributed their time to try to get them right. No one is purposely adding "nasty" things to the codebase. |
Hi, I cannot reproduce the problem with inspector turned on... Can anyone help me find a way to reproduce the problem with inspector turned on? |
Could anyone help me test this direty hack?
It seems working in my chrome. But I am not sure whether there are some IME issues. |
@ianstormtaylor I don't think @mattkrick meant at all to be condescending. I think only that he meant it has nasty (of course unintended) side effects, not that it's a nasty thing to do. I know for sure I've run into this type of thing in my own.
|
Do you want to request a feature or report a bug?
bug
What's the current behavior?
Using an extra span with a zero-width space character for line breaks is pretty nasty.
What's the expected behavior?
Using line breaks to preserve whitespace.
I think it' safe to say it's how it should be done
I created this issue so we can first agree on the right way to do it, and then accept a suitable PR.
Here's the proposed acceptance criteria:
<br>
<br>
The text was updated successfully, but these errors were encountered: