fix: differentiate style presets with wider font/line/paragraph spacing values, apply paragraph_spacing

This commit is contained in:
Developer
2026-05-14 21:13:49 +08:00
parent 515ec0e07d
commit 4655ad5d31
2 changed files with 22 additions and 7 deletions

View File

@@ -205,7 +205,7 @@ pub fn reading_view(
let start = section.pages[*current_page];
let end = section.pages[*current_page + 1];
let raw_text: String = section.content.chars().skip(start).take(end - start).collect();
let indented = crate::style::apply_indent(&raw_text, style.first_line_indent);
let indented = style.apply_to_text(&raw_text);
let align = match style.alignment {
TextAlignment::Left => egui::Align::LEFT,