diff options
author | Joop Kiefte <ikojba@gmail.com> | 2019-01-01 02:55:59 +0100 |
---|---|---|
committer | Joop Kiefte <ikojba@gmail.com> | 2019-01-01 02:55:59 +0100 |
commit | a596a34d9582311d72825430b8705db50acf6eb1 (patch) | |
tree | 36383f082f659108fc00ba0c851b970f1cbee0c7 /pdf/create.go | |
parent | 9bfc11edbfcbe24fbd462ff9501fb4e036e1ca9b (diff) |
Improving fountain support. Still not perfect, but steadily improving
Diffstat (limited to 'pdf/create.go')
-rw-r--r-- | pdf/create.go | 8 |
1 files changed, 4 insertions, 4 deletions
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) |