diff options
author | bptato <nincsnevem662@gmail.com> | 2025-03-25 23:11:46 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2025-03-25 23:53:12 +0100 |
commit | 76320b4a2b8677581ea45da644a7cc3a71544821 (patch) | |
tree | 46c892f45605eb505733ca0dc8010a7811c1e027 /src/css/layout.nim | |
parent | 6c56bff9a05d2ebf3bebd69131392f25941855ea (diff) | |
download | chawan-76320b4a2b8677581ea45da644a7cc3a71544821.tar.gz |
render: fix formatting generated for padding
The old logic was badly copy pasted from the pass that did text formatting; accordingly, it was overly complex and did not work correctly. Now we just add a single formatting cell to override the last one if it exists. (Formatting cells go from x position -> next cell or line end, and padding implies that the line had ended before the starting position of our text.) I've left in a workaround to what I think is a bug. It may be related to cursorNextLink getting stuck at the line's end...
Diffstat (limited to 'src/css/layout.nim')
0 files changed, 0 insertions, 0 deletions