[New, Update] Messy commit.

* [Update] Add module paths to watch files.  From the old Bitbucket repo, submitted by `MarkSill`.
* [Fix] Trim erroneous whitespace surrounding the story title.  From the old Bitbucket repo.
* [Update, Devel, Docs] Changed import and doc paths to point to the GitHub repo and removed Mercurial references.
* [Fix] Leading whitespace on passages is trimmed as intended.
* [New, Docs] Added an option to disable passage trimming (`--no-trim`).
* [Update] Update IFID commentary and cleanup.
* [Update] Switched to another SemVer module due to a few issues with the old one.
* [Update] Purged commented legacy & debug code.
This commit is contained in:
Thomas M. Edwards 2019-12-23 14:25:57 -06:00
parent 57e1aa52ff
commit 1bb4278938
15 changed files with 123 additions and 64 deletions

View file

@ -9,6 +9,7 @@ package main
import (
"fmt"
"log"
"strings"
)
// Twine 1 story metadata.
@ -182,6 +183,8 @@ func (s *story) add(p *passage) {
log.Printf(`warning: Cannot unmarshal "StorySettings" special passage; %s.`, err.Error())
}
case "StoryTitle":
// Rebuild the passage contents to trim erroneous whitespace surrounding the title.
p.text = strings.TrimSpace(p.text)
s.name = p.text
}