From 4d68494a67680bf85ec80dad64b5f2ca24d6ac5f Mon Sep 17 00:00:00 2001 From: Joop Kiefte Date: Fri, 15 Oct 2021 00:14:56 +0100 Subject: correct lexer rename for pdf creation --- pdf/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf/create.go b/pdf/create.go index 943c5ce..ecec798 100644 --- a/pdf/create.go +++ b/pdf/create.go @@ -104,7 +104,7 @@ func line(pdf *gofpdf.Fpdf, format rules.Format, html gofpdf.HTMLBasicType, text pdf.MultiCell(0, 0.165, text, "", format.Align, false) } -func Create(file string, format rules.Set, contents lex.Screenplay) { +func Create(file string, format rules.Set, contents lex.Document) { pdf := gofpdf.New("P", "in", "Letter", "") pdf.AddUTF8FontFromBytes("CourierPrime", "", font.MustAsset("Courier-Prime.ttf")) pdf.AddUTF8FontFromBytes("CourierPrime", "B", font.MustAsset("Courier-Prime-Bold.ttf")) -- cgit v1.2.3-70-g09d2