diff options
author | Joop Kiefte <ikojba@gmail.com> | 2020-11-09 20:02:15 +0200 |
---|---|---|
committer | Joop Kiefte <ikojba@gmail.com> | 2020-11-09 20:02:15 +0200 |
commit | e24903a7d1f1f314a55ee97748de24f701f9ff8d (patch) | |
tree | a64e19a5e9d0e740a72096ecc4321040bf7d748e | |
parent | 68f8eda479958fcf363052262e5cce31da2a8b1c (diff) |
Correct several prefix dot bug
-rw-r--r-- | fountain/parse.go | 2 | ||||
-rw-r--r-- | go.mod | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/fountain/parse.go b/fountain/parse.go index c47e537..801bc7e 100644 --- a/fountain/parse.go +++ b/fountain/parse.go @@ -31,7 +31,7 @@ func CheckScene(row string) (bool, string, string) { scene = true } } - if strings.HasPrefix(row, ".") { + if strings.HasPrefix(row, ".") && !strings.HasPrefix(row, "..") { row = row[1:] scene = true } @@ -4,3 +4,5 @@ require ( github.com/BurntSushi/toml v0.3.1 github.com/jung-kurt/gofpdf v1.0.0 ) + +go 1.13 |