]> git.lyx.org Git - features.git/commit
Centralize the code that removes trailing spaces from end row element.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 31 Aug 2021 17:23:55 +0000 (19:23 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 23 Nov 2021 15:31:30 +0000 (16:31 +0100)
commit28559310feea29ceb836417116b2f66ce4fd8dee
treebb2eb9a8816b3d3650d82fb8aee770e2cef4ebff
parentf7dde3d7748e3bbd4b3f0fbd1979dc04fb7c6dae
Centralize the code that removes trailing spaces from end row element.

Move to Row::Element::rtrim the code in Row::shortenIfNeeded that
removes trailing spaces from last element in row, so that it can be
called when actually breaking a row.

Fixes bug found by Kornel.
src/Row.cpp
src/Row.h
src/TextMetrics.cpp