-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Sometimes, repeating spaces are stripped out #1103
Comments
Hey. Could you try to reproduce this issue on this PR? |
Still reproducible, unfortunately. |
So, fwiw, this is the HTML with your PR: <!-- broken --><x-row> <span style="color: rgb(51, 255, 0);">8.</span>freenode <span class=" unicode-node" style="color: rgb(88, 88, 88);">│ </span><span class=" unicode-node" style="color: rgb(88, 88, 88);">│</span><span style="color: rgb(0, 102, 255);"> </span><span style="color: rgb(255, 255, 255);">DenSchub </span></x-row>
<!-- good --><x-row> <span style="color: rgb(51, 255, 0);">8.</span>freenode <span class=" unicode-node" style="color: rgb(88, 88, 88);">│</span> <span class=" unicode-node" style="color: rgb(88, 88, 88);">│</span><span style="color: rgb(0, 102, 255);"> </span><span style="color: rgb(255, 255, 255);">DenSchub </span></x-row> Same story, but the width definition is inside your if (container.style && runes(text).length === 1 && containsNonLatinCodepoints(text)) {
container.className += ' unicode-node';
} and that made me wonder. By default, I've looked at @dotcypress is this helpful to you or should I continue debugging up to see where we could fix that? |
@denschub thank you for help. We need to check length of symbols, cause we need to set width for each non-latin character. I'm trying to find place where spaces drop may happen. |
Sadly, no. :( Weechat is the only application where I have experienced this issue so far... |
Maybe it happen because this: But i'm not sure, need more research! 😄 |
I guess the best way is to find out where/why the spaces are wrapped inside that span, but after a forced repaint via tmux they're no longer. I'd poke around with it, but so far, the devtools are unable to break at that source location for some reason, need to fix that first... :) |
I'm having the same problem using vim inside a screen session. I have found in developer tools the same problem with stripped white spaces. |
Hm, vim works fine for me. That's surprising and makes debugging this even harder.. :( |
FWIW I still experience this in weechat. From what I can tell in the dev tools, spaces are being dropped between the first blue pipe character used for the border and whatever the next pipe character is. I can manually fix lines by inserting the spaces. However, the number of spaces between empty lines doesn't seem to be always consistent. (One row may be missing 10 spaces, and the next row is missing 13). The number of spaces on a row may change by switching to another buffer, and then back to the original buffer. I've noticed it most often for two cases:
I'm still not sure why this happening in hyper though. |
This issue appears to be fixed with the canary build. I took the current build from master and made my own binary. The spacing issue appears to be fixed both in weechat-slack and my other channels so far. |
I wanted to come back and report that the issue still exists in the canary build. It didn't seem to appear until a couple days later. |
Issue
I experience a weird issue when using weechat with two sidebars. It's probably best if I show you screenshots. This is how it should look like:
And this is how it looks like:
Apparently, sometimes duplicate spaces get striped/merged together. Now, here comes the crazy stuff:
tmux refresh-client
, the spaces are drawn correctly.Here is the HTML that's generated for a line that's missing spaces. The first line is "broken", the second line is exactly the same content after a refresh:
It's pretty easy to spot that, in the broken case, the spaces are inside the span tag that colors the border line. This is bad since this span tag has a
width: 7.2px
style...Since I was not able to build a simplified testcase, that's all the information I can provide at this moment. Maybe it's useful for someone.
The text was updated successfully, but these errors were encountered: