Open
Description
Describe the bug
Whenever a label ends with a newline character in a wrapping layout, the next label will have an indent equal to item_spacing.x
.
To Reproduce
Adding this code to any ui should reproduce the error on the second line:
ui.horizontal_wrapped(|ui| {
ui.label("Text ends with a newline\n");
ui.label("Some other text, no newline");
ui.label("next label");
ui.end_row(); // start over
ui.label("Text that continues\nafter a newline is fine");
});
Expected behavior
Every newline character should behave the same way.
Desktop (please complete the following information):
- OS: macOS
- Browser not tested
- Version master-branch