tour: make space optional after "#appengine:" prefix

This change improves the algorithm that detects the "#appengine:"
blocks to make the space after colon optional rather than mandatory.

That makes it possible to have an empty line with the "#appengine:"
prefix, without requiring a trailing space after the colon. It's
convenient whenever such a block contains multiple paragraphs, e.g.:

	#appengine: * Go offline
	#appengine:
	#appengine: This tour is also available as a stand-alone program
	#appengine: that you can use without access to the internet.
	#appengine:
	#appengine: The stand-alone tour is faster, as it builds and runs
	#appengine: the code samples on your own machine.

People often have editors set to trim trailing whitespace on save,
so it's helpful to improve the algorithm, instead of having significant
trailing whitespace and relying on people to not accidentally remove it.

Now that the trailing whitespace is no longer signifiant, remove it.

Also fix a typo: s/non-blank like/non-blank line/.

Change-Id: I42d41634dd30e307ac98214cb94b1f97a8032f08
Reviewed-on: https://go-review.googlesource.com/c/tour/+/167837
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
3 files changed
tree: 23cdb7801c369cf2766419faad79b093d80b9e0f
  1. content/
  2. gotour/
  3. pic/
  4. reader/
  5. solutions/
  6. static/
  7. template/
  8. tools/
  9. tree/
  10. wc/
  11. .gcloudignore
  12. app.yaml
  13. appengine.go
  14. AUTHORS
  15. codereview.cfg
  16. CONTRIBUTING.md
  17. CONTRIBUTORS
  18. fmt.go
  19. go.mod
  20. go.sum
  21. LICENSE
  22. local.go
  23. README.md
  24. TODO
  25. tour.go
  26. TRANSLATE
README.md

Go Tour

A Tour of Go is an introduction to the Go programming language. Visit https://tour.golang.org to start the tour.

Download/Install

To install the tour from source, first set up a workspace and then run:

$ go get golang.org/x/tour

This will place a tour binary in your workspace's bin directory, which can be run offline.

Contributing

Contributions should follow the same procedure as for the Go project: https://golang.org/doc/contribute.html

To run the tour server locally:

dev_appserver.py app.yaml

and then visit http://localhost:8080/ in your browser.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the tour is located at https://github.com/golang/go/issues. Prefix your issue with “tour:” in the subject line, so it is easy to find.

License

Unless otherwise noted, the go-tour source files are distributed under the BSD-style license found in the LICENSE file.