diff options
author | Joop Kiefte <ikojba@gmail.com> | 2020-11-20 04:52:00 +0200 |
---|---|---|
committer | Joop Kiefte <ikojba@gmail.com> | 2020-11-20 04:52:00 +0200 |
commit | 4c8acbc7d60dcfab90855b442fb14363e69a03d1 (patch) | |
tree | 11d81b41bde4ebb6329445319b2f4f3460bf3e92 | |
parent | bc5470e5b30d0082bdd9eb2c954106235be3e842 (diff) |
Correct same line parentheticals
-rw-r--r-- | fountain/parse.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fountain/parse.go b/fountain/parse.go index 801bc7e..d537665 100644 --- a/fountain/parse.go +++ b/fountain/parse.go @@ -97,7 +97,6 @@ func CheckForce(row string) (bool, string, string) { // This is a Fountain parser, trying to be as close as possible to the description // found at https://fountain.io/syntax but it can be incomplete. -// Over time more and more parts should be configurable here, e.g. INT/EXT translatable to other languages. func Parse(scenes []string, file io.Reader) (out lex.Screenplay) { Scene = scenes var err error @@ -141,7 +140,8 @@ func Parse(scenes []string, file io.Reader) (out lex.Screenplay) { } } } - if row == strings.ToUpper(row) && action == "action" { + charcheck := strings.Split(row, "(") + if charcheck[0] == strings.ToUpper(charcheck[0]) && action == "action" { action = "speaker" dialog = true } |