Alignment breaks in presence of non-standard-width glyphs #122
Labels
No Label
blocked: dependency
blocked: info-needed
bug
duplicate
enhancement
fixed in HEAD
help wanted
hs:arrows
hs:brackets
hs:classes
hs:comments
hs:do-notation
hs:guards
hs:lists
hs:operators
hs:patterns
hs:records
hs:types
invalid
language extension support
layouting
needs confirmation
priority: high
priority: low
question
revisit before next release
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: hexagoxel/brittany#122
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Example
will be formatted correctly like below:
Though
becomes
I guess brittany doesn't handle multibyte strings.
I see, that is a bit unfortunate. However it does not seem to be connected to "multibyte" aspect, but rather to the fact that even with monospace fonts, the glyph for "あ" is larger than other glyphs. The alignment functionality in brittany really only makes sense when all glyphs have the same size.
So the only fix I can think of is to disable alignment: Either globally via
_lconfig_columnAlignMode = ColumnAlignModeDisabled
or perhaps we could implement something that disables only in relevant cases? I don't really know and somewhat doubt that such cases could be detected reliably though, because it is more the font's property than the codepoint's.How should this be aligned?
All of the arrows are aligned. They start at column 8. But the characters themselves aren't the same visual width.