mirror of
https://github.com/golang/go
synced 2024-11-22 03:44:39 -07:00
godoc: <pre> must not occur inside <p>
Fixes #2532 R=golang-dev, dr.volker.dobler, rsc CC=golang-dev https://golang.org/cl/5450115
This commit is contained in:
parent
c3480878c4
commit
e97a55810f
@ -5,10 +5,10 @@
|
|||||||
<div class="expanded">
|
<div class="expanded">
|
||||||
<p class="exampleHeading">▾ Example</p>
|
<p class="exampleHeading">▾ Example</p>
|
||||||
<p>Code:</p>
|
<p>Code:</p>
|
||||||
<p class="code"><pre>{{.Code}}</pre></p>
|
<pre class="code">{{.Code}}</pre>
|
||||||
{{if .Output}}
|
{{if .Output}}
|
||||||
<p>Output:</p>
|
<p>Output:</p>
|
||||||
<p class="output"><pre>{{html .Output}}</pre></p>
|
<pre class="output">{{html .Output}}</pre>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -51,8 +51,8 @@
|
|||||||
{{comment_html .Doc}}
|
{{comment_html .Doc}}
|
||||||
{{if $.IsPkg}}
|
{{if $.IsPkg}}
|
||||||
{{with .Filenames}}
|
{{with .Filenames}}
|
||||||
<p>
|
|
||||||
<h4>Package files</h4>
|
<h4>Package files</h4>
|
||||||
|
<p>
|
||||||
<span style="font-size:90%">
|
<span style="font-size:90%">
|
||||||
{{range .}}
|
{{range .}}
|
||||||
<a href="/{{.|srcLink}}">{{.|filename|html}}</a>
|
<a href="/{{.|srcLink}}">{{.|filename|html}}</a>
|
||||||
@ -88,7 +88,7 @@
|
|||||||
{{$tname_html := node_html .Type.Name $.FSet}}
|
{{$tname_html := node_html .Type.Name $.FSet}}
|
||||||
<h2 id="{{$tname_html}}">type <a href="/{{posLink_url .Decl $.FSet}}">{{$tname_html}}</a></h2>
|
<h2 id="{{$tname_html}}">type <a href="/{{posLink_url .Decl $.FSet}}">{{$tname_html}}</a></h2>
|
||||||
{{comment_html .Doc}}
|
{{comment_html .Doc}}
|
||||||
<p><pre>{{node_html .Decl $.FSet}}</pre></p>
|
<pre>{{node_html .Decl $.FSet}}</pre>
|
||||||
{{range .Consts}}
|
{{range .Consts}}
|
||||||
{{comment_html .Doc}}
|
{{comment_html .Doc}}
|
||||||
<pre>{{node_html .Decl $.FSet}}</pre>
|
<pre>{{node_html .Decl $.FSet}}</pre>
|
||||||
|
Loading…
Reference in New Issue
Block a user