- /// sets row.end to the pos value *after* which a row should break.
- /// for example, the pos after which isNewLine(pos) == true
- /// FIXME: move to TextMetrics.
- void rowBreakPoint(Buffer const &, int right_margin, int max_width, pit_type pit,
- Row & row) const;
- /// sets row.width to the minimum space a row needs on the screen in pixel
- /// FIXME: move to TextMetrics.
- void setRowWidth(Buffer const &, int right_margin, int max_width, pit_type pit,
- Row & row) const;
-
- /// Calculate and set the height of the row
- /// FIXME: move to TextMetrics.
- void setHeightOfRow(BufferView const &, pit_type, Row & row);
+ /// delete double spaces, leading spaces, and empty paragraphs
+ /// from \first to \last paragraph
+ void deleteEmptyParagraphMechanism(pit_type first, pit_type last, bool trackChanges);