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. --- rules/rules.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'rules/rules.go') diff --git a/rules/rules.go b/rules/rules.go index 45e5b56..c71df9d 100644 --- a/rules/rules.go +++ b/rules/rules.go @@ -7,6 +7,7 @@ type Format struct{ Style string Size float64 Hide bool + Align string } type Set map[string]Format @@ -23,6 +24,9 @@ func (s Set) Get(action string) (f Format) { if f.Size == 0 { f.Size = 12 } + if f.Align == "" { + f.Align = "L" + } return f } @@ -65,8 +69,9 @@ var Default = Set{ Width: 6, }, "title": { - Left: 3.6, - Width: 4, + Left: 1.5, + Width: 6, + Align: "C", }, "meta": { Left: 1.5, -- cgit v1.2.3-70-g09d2