diff options
author | Robert Griesemer <gri@golang.org> | 2009-12-01 09:15:05 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2009-12-01 09:15:05 -0800 |
commit | 0f3256c2106f3275d14f6763c2af71f0d9c72606 (patch) | |
tree | 50bd3eaf1d8cbcc6d46b297e5a8ff2444e92180f /lib | |
parent | e68134f731e82990ff5c049b56415c009a65a33f (diff) | |
download | golang-0f3256c2106f3275d14f6763c2af71f0d9c72606.tar.gz |
some godoc cleanup:
- simplified dealing with parse errors: no need to intersperse them in the source
- improve visibility of highlighted identifiers by showing them in bold
R=rsc
http://codereview.appspot.com/163051
Diffstat (limited to 'lib')
-rw-r--r-- | lib/godoc/parseerror.txt | 6 | ||||
-rw-r--r-- | lib/godoc/source.html (renamed from lib/godoc/parseerror.html) | 11 |
2 files changed, 7 insertions, 10 deletions
diff --git a/lib/godoc/parseerror.txt b/lib/godoc/parseerror.txt deleted file mode 100644 index 609cb511b..000000000 --- a/lib/godoc/parseerror.txt +++ /dev/null @@ -1,6 +0,0 @@ -parse errors: -{.repeated section list} -{.section msg} -{filename}:{line}: {msg} -{.end} -{.end} diff --git a/lib/godoc/parseerror.html b/lib/godoc/source.html index 4fa97a5e1..4189f4ef8 100644 --- a/lib/godoc/parseerror.html +++ b/lib/godoc/source.html @@ -4,7 +4,10 @@ license that can be found in the LICENSE file. --> -<pre> -{.repeated section list} -{src|html}{.section msg}<b><span class="alert">«{msg|html}»</span></b>{.end}{.end} -</pre> +{.section Error} + <p> + <span class="alert" style="font-size:120%">{@|html}</span> + </p> +{.or} + <pre>{Source|html}</pre> +{.end} |