-
Notifications
You must be signed in to change notification settings - Fork 82
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
Unicode width not being accounted for #349
Comments
I'm willing to help, if you could point me in the right direction |
Could you provide your example? I just wonder if you used |
I'm encountering the same problem. What does the color feature have to do with this? Is there something i can do, besides filtering unicode characters? |
It's not all characters but these 2 i found causing issues: ☀️🏛️ |
Hi @daywalker90 Could you provide a code example?
It was renamed to
Generally speaking it all depends on a terminal. |
Now I am thinking maybe it's worth to add a configuration for it. Either a complete UTF-8 map or some specifics like this particular char will take not 1 but 3 terminal columns. Just thoughts here. |
You are right, it's highly terminal related. With putty i have these 2 above misbehaving and with powershell it's a complete mess. (i know, windows... yikes) pub async fn qwert(
plugin: Plugin<()>,
_args: serde_json::Value,
) -> Result<serde_json::Value, Error> {
let row1 = TableTest {
name: "test1".to_string(),
};
let row2 = TableTest {
name: "test☀️".to_string(),
};
let mut rows = Vec::new();
rows.push(row1);
rows.push(row2);
let table = Table::new(rows);
Ok(json!({ "format-hint":"simple",
"result": table.to_string() }))
} |
Characters with variable width break the table borders.
Example:
The text was updated successfully, but these errors were encountered: