mirror of
https://github.com/google/pebble.git
synced 2025-05-01 07:41:41 -04:00
spelling: orphans
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
f44e5e50e9
commit
92b055a0c4
2 changed files with 2 additions and 2 deletions
|
@ -791,7 +791,7 @@ static inline void prv_walk_lines_down(Iterator* const line_iter, TextLayout* co
|
|||
const Word word_before_rendering = *current_word_ref;
|
||||
const OrphanLineState orphan_state = prv_capture_orphan_state(line);
|
||||
|
||||
// When repeating text to prevent orhpans we could run into the situation where repeating text
|
||||
// When repeating text to prevent orphans we could run into the situation where repeating text
|
||||
// pushes down the remaining text far enough so it ends up on yet another page. This would
|
||||
// enter an infinite loop.
|
||||
// To avoid that, we only apply this strategy, when it's "safe" to do so (in theory, there's
|
||||
|
|
|
@ -426,7 +426,7 @@ void test_graphics_draw_text_flow__no_infinite_loop(void) {
|
|||
.perimeter.impl = &(GPerimeter){.callback = perimeter_for_display_rect},
|
||||
},
|
||||
};
|
||||
char text[] = "Prevent orhpans for tall-enough pages.";
|
||||
char text[] = "Prevent orphans for tall-enough pages.";
|
||||
const int16_t line_height = 22;
|
||||
// some more pixels to show that orphan prevention really only applies if there's enough space
|
||||
// for enough *full* lines
|
||||
|
|
Loading…
Add table
Reference in a new issue