mirror of
https://github.com/ratatui/ratatui.git
synced 2025-09-28 21:41:49 +00:00

`Paragraph` now supports rendering each line in the paragraph with a different alignment (Center, Left and Right) rather than the entire paragraph being aligned the same. Each line either overrides the paragraph's alignment or inherits it if the line's alignment is unspecified. - Adds `alignment` field to `Line` and builder methods on `Line` and `Span` - Updates reflow module types to be line oriented rather than symbol oriented to take account of each lines alignment - Adds unit tests to `Paragraph` to fully capture the existing and new behavior --------- Co-authored-by: Josh McKinney <joshka@users.noreply.github.com>