From 851c6d046b61fced71fc46b43e54b7dc0ce4ef94 Mon Sep 17 00:00:00 2001 From: Joop Kiefte Date: Fri, 20 Nov 2020 05:53:33 +0200 Subject: Add support for multiline with colon --- fountain/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": -- cgit v1.2.3-70-g09d2