summaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
authorJoop Kiefte <ikojba@gmail.com>2018-12-31 22:55:30 +0100
committerJoop Kiefte <ikojba@gmail.com>2018-12-31 22:55:30 +0100
commit3b4f9775c15cf7c101c1759ee4e4f0fa0f5117dc (patch)
tree22b2eedfeddeb821350a343c4ca6aa0ac310a740 /pdf
parent6274d11f90365f8ba7077838582ceb9570189fc5 (diff)
Add center alignment for title and refactor fountain parsing.
Diffstat (limited to 'pdf')
-rw-r--r--pdf/create.go2
1 files changed, 1 insertions, 1 deletions
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) {