about summary refs log tree commit diff stats
path: root/src/css/layout.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-03-25 23:11:46 +0100
committerbptato <nincsnevem662@gmail.com>2025-03-25 23:53:12 +0100
commit76320b4a2b8677581ea45da644a7cc3a71544821 (patch)
tree46c892f45605eb505733ca0dc8010a7811c1e027 /src/css/layout.nim
parent6c56bff9a05d2ebf3bebd69131392f25941855ea (diff)
downloadchawan-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