diff options
author | Joop Kiefte <ikojba@gmail.com> | 2018-12-31 22:55:30 +0100 |
---|---|---|
committer | Joop Kiefte <ikojba@gmail.com> | 2018-12-31 22:55:30 +0100 |
commit | 3b4f9775c15cf7c101c1759ee4e4f0fa0f5117dc (patch) | |
tree | 22b2eedfeddeb821350a343c4ca6aa0ac310a740 /rules/rules.go | |
parent | 6274d11f90365f8ba7077838582ceb9570189fc5 (diff) |
Add center alignment for title and refactor fountain parsing.
Diffstat (limited to 'rules/rules.go')
-rw-r--r-- | rules/rules.go | 9 |
1 files changed, 7 insertions, 2 deletions
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, |