diff options
author | Joop Kiefte <ikojba@gmail.com> | 2020-11-20 05:53:33 +0200 |
---|---|---|
committer | Joop Kiefte <ikojba@gmail.com> | 2020-11-20 05:53:33 +0200 |
commit | 851c6d046b61fced71fc46b43e54b7dc0ce4ef94 (patch) | |
tree | 25eb0398725c5293724157e381f0919329e96d6a | |
parent | 83d54fbe5f3111c1d2800bb3b62a7f65f97dff6b (diff) |
Add support for multiline with colon
-rw-r--r-- | fountain/parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fountain/parse.go b/fountain/parse.go index d537665..60ea6b5 100644 --- a/fountain/parse.go +++ b/fountain/parse.go @@ -170,7 +170,7 @@ func Parse(scenes []string, file io.Reader) (out lex.Screenplay) { out = append(out, lex.Line{Type: "titlepage"}) } split := strings.SplitN(row, ":", 2) - if len(split) == 2 { + if len(split) == 2 && !strings.HasPrefix(row, " ") { action = split[0] switch strings.ToLower(action) { case "title", "credit", "author", "authors": |