From eb5032a3026be88e752133834232eda254583c08 Mon Sep 17 00:00:00 2001 From: Fredrik Blomqvist Date: Wed, 8 Apr 2026 22:54:23 +0200 Subject: [PATCH 1/2] Align lyrics in pdf left-to-right Fixes a bug lyric elements were aligned right-to-left in the `pdf` output, which it should not be. --- crates/rustwell/src/export/pdf.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rustwell/src/export/pdf.rs b/crates/rustwell/src/export/pdf.rs index ad84cc4..33030d1 100644 --- a/crates/rustwell/src/export/pdf.rs +++ b/crates/rustwell/src/export/pdf.rs @@ -454,7 +454,7 @@ impl PdfExporter { } } Element::Lyrics(s) => { - write_element!(s, &MARGINS.lyrics, Alignment::RightToLeft); + write_element!(s, &MARGINS.lyrics, Alignment::LeftToRight); } Element::Transition(s) => { write_element!(s, &MARGINS.transition, Alignment::RightToLeft); From ddf9057494ff289432559798a3232ffa82fa2796 Mon Sep 17 00:00:00 2001 From: Fredrik Blomqvist Date: Fri, 10 Apr 2026 13:10:32 +0200 Subject: [PATCH 2/2] Remove enforced `css` styles --- crates/rustwell/src/export/style.css | 6 ------ 1 file changed, 6 deletions(-) diff --git a/crates/rustwell/src/export/style.css b/crates/rustwell/src/export/style.css index a11f4f2..9cd0d62 100644 --- a/crates/rustwell/src/export/style.css +++ b/crates/rustwell/src/export/style.css @@ -61,13 +61,11 @@ .rustwell .title-page .title p { font-size: 1.5em; - text-transform: uppercase; font-weight: bold; margin-bottom: 0.5em; } .rustwell .title-page .credit p { - font-style: italic; margin-bottom: 1em; } @@ -76,7 +74,6 @@ } .rustwell .title-page .source p { - font-style: italic; margin-bottom: 1em; } @@ -100,8 +97,6 @@ .rustwell div.scene-heading { width: 38.3em; margin-top: 2em; - text-transform: uppercase; - font-weight: bold; } .rustwell div.block { @@ -180,7 +175,6 @@ .rustwell .lyrics p { padding-left: 6.4em; width: 25.6em; - text-transform: uppercase; } /* Synopsis */