Wrongly align tasks #3610
Unanswered
Praczet
asked this question in
Community support
Replies: 1 comment
-
There was some related discussion in #2599. I wonder if this character is new since the latest update of the library updated in #2333? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am quite new to the taskwarrior and I have say I like it a lot.
I notice that tasks when using an Unicode character outside the Basic Multilingual Plane are not perfectly aligned
![image](https://private-user-images.githubusercontent.com/109667910/362576065-9a1abd67-f7b3-43e2-b51e-a5f319d36ecb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNDYzODgsIm5iZiI6MTczOTM0NjA4OCwicGF0aCI6Ii8xMDk2Njc5MTAvMzYyNTc2MDY1LTlhMWFiZDY3LWY3YjMtNDNlMi1iNTFlLWE1ZjMxOWQzNmVjYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQwNzQxMjhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01ZmE0ZGJmYmFhMDFlNmVkZGIwODVjNWY5YzNlMGY5ODc4YmI0M2IzYjBiNTcyZmJjZDA5ZTFiNGRlMzhkN2FlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.KoikX-_4eiOe894oF3GYSh-x-4O6yS88UL4Ol8cPFl4)
For example character:
screen:
I believe this is due to the fact that those characters take up more bytes than a standard ASCII character.
I noticed this when I was displaying tasks in my nvim plugin. normal method to calculate string length #string didn't work or rather it gives number of byte used in string then number of characters
in C++ you calculate it like this.
Best regards
Adam
Beta Was this translation helpful? Give feedback.
All reactions