Nicer comments

This commit is contained in:
Hamcha 2019-06-14 00:09:13 +02:00
parent b7e1cacbd9
commit 38102fbc3a
Signed by: hamcha
GPG key ID: A40413D21021EAEE

View file

@ -78,7 +78,7 @@ func main() {
// Add our own credits
tpldata.Credits += "\n" + HTMLrocCredits
// Rules are after TOC
// Rules are after TOC, so find end of TOC
tocend := strings.Index(filestr, "\n\n")
if tocend < 0 {
fmt.Fprintln(os.Stderr, "could not find end of TOC")
@ -88,7 +88,7 @@ func main() {
// Strip TOC out
filestr = filestr[tocend+2:]
// Every rule is a line (pretty handy!)
// Every rule is almost always a line (pretty handy!)
lines := strings.Split(filestr, "\n")
var currentSection *TemplateSection
for _, line := range lines {
@ -131,7 +131,6 @@ func main() {
// It's a new rule
case isRule:
// ID is between ()s
endID := strings.IndexRune(trimmed, ')')
if endID < 0 {