From 3b4f9775c15cf7c101c1759ee4e4f0fa0f5117dc Mon Sep 17 00:00:00 2001 From: Joop Kiefte Date: Mon, 31 Dec 2018 22:55:30 +0100 Subject: Add center alignment for title and refactor fountain parsing. --- pdf/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pdf') diff --git a/pdf/create.go b/pdf/create.go index 4cf17f9..05cc871 100644 --- a/pdf/create.go +++ b/pdf/create.go @@ -40,7 +40,7 @@ func (t Tree) Render() { func line(pdf *gofpdf.Fpdf, format rules.Format, text string) { pdf.SetFont(format.Font, format.Style, format.Size) pdf.SetX(format.Left) - pdf.MultiCell(format.Width, 0.19, tr(text), "", "aligned", false) + pdf.MultiCell(format.Width, 0.19, tr(text), "", format.Align, false) } func Create(file string, format rules.Set, contents lex.Screenplay) { -- cgit v1.2.3-70-g09d2