From a596a34d9582311d72825430b8705db50acf6eb1 Mon Sep 17 00:00:00 2001 From: Joop Kiefte Date: Tue, 1 Jan 2019 02:55:59 +0100 Subject: Improving fountain support. Still not perfect, but steadily improving --- pdf/create.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pdf') diff --git a/pdf/create.go b/pdf/create.go index 05cc871..52c3122 100644 --- a/pdf/create.go +++ b/pdf/create.go @@ -10,9 +10,9 @@ import ( var tr func(string) string type Tree struct { - PDF *gofpdf.Fpdf + PDF *gofpdf.Fpdf Rules rules.Set - F lex.Screenplay + F lex.Screenplay } func (t Tree) pr(a string, text string) { @@ -50,9 +50,9 @@ func Create(file string, format rules.Set, contents lex.Screenplay) { pdf.SetMargins(1, 1, 1) pdf.SetXY(1, 1) f := Tree{ - PDF: pdf, + PDF: pdf, Rules: format, - F: contents, + F: contents, } f.Render() err := pdf.OutputFileAndClose(file) -- cgit v1.2.3-70-g09d2