aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2019-12-04 18:25:41 +0100
committerUlrich Müller <ulm@gentoo.org>2019-12-08 12:32:05 +0100
commit6a1c35efce4347c22c94680e39a84d3f1df794d0 (patch)
tree2d415963f847a78b1dc07d8c293c5f9bd58a46c8 /appendices/contributing
parentDrop caption attribute from <pre> elements. (diff)
downloaddevmanual-6a1c35efce4347c22c94680e39a84d3f1df794d0.tar.gz
devmanual-6a1c35efce4347c22c94680e39a84d3f1df794d0.tar.bz2
devmanual-6a1c35efce4347c22c94680e39a84d3f1df794d0.zip
devbook-guide: Don't mention caption as attribute of <pre>.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'appendices/contributing')
-rw-r--r--appendices/contributing/devbook-guide/text.xml15
1 files changed, 5 insertions, 10 deletions
diff --git a/appendices/contributing/devbook-guide/text.xml b/appendices/contributing/devbook-guide/text.xml
index 5aa5525..672a083 100644
--- a/appendices/contributing/devbook-guide/text.xml
+++ b/appendices/contributing/devbook-guide/text.xml
@@ -189,7 +189,7 @@ This is a paragraph. &lt;path&gt;/etc/passwd&lt;/path&gt; is a file.
Type &lt;c&gt;ls&lt;/c&gt; if you feel like it. I &lt;e&gt;really&lt;/e&gt; want to go to sleep now.
&lt;/p&gt;
-&lt;pre caption="Code Sample"&gt;
+&lt;pre&gt;
This is text output or code.
# &lt;i&gt;this is user input&lt;/i&gt;
@@ -257,12 +257,11 @@ only tags that should appear immediately inside a <c>&lt;body&gt;</c> element.
Another thing -- these tags <e>should not</e> be stacked -- in other words,
don't put a <c>&lt;note&gt;</c> element inside a <c>&lt;p&gt;</c> element. As
you might guess, the <c>&lt;pre&gt;</c> element preserves its whitespace
-exactly, making it well-suited for code excerpts. You must name the
-<c>&lt;pre&gt;</c> tag with a <c>caption</c> attribute:
+exactly, making it well-suited for code excerpts:
</p>
<codesample lang="sgml"><!-- Named &lt;pre&gt; -->
-&lt;pre caption="Output of uptime"&gt;
+&lt;pre&gt;
# &lt;i&gt;uptime&lt;/i&gt;
16:50:47 up 164 days, 2:06, 5 users, load average: 0.23, 0.20, 0.25
&lt;/pre&gt;
@@ -551,8 +550,8 @@ and the attribute value. As an example:
</p>
<codesample lang="sgml"><!-- Attributes -->
-Wrong : &lt;pre caption = "Attributes"&gt;
-Correct: &lt;pre caption="Attributes"&gt;
+Wrong : &lt;uri link = "https://forums.gentoo.org/"&gt;
+Correct: &lt;uri link="https://forums.gentoo.org/"&gt;
</codesample>
</body>
@@ -581,10 +580,6 @@ with a capital letter.
</codesample>
<p>
-Code Listings should <e>always</e> have a <c>caption</c>.
-</p>
-
-<p>
Try to use <c>&lt;uri&gt;</c> with the <c>link</c> attribute as much as
possible. In other words, the <uri link="https://forums.gentoo.org">Gentoo
Forums</uri> is preferred over <uri>https://forums.gentoo.org</uri>.