From: Martin Waitz <tali@admingilde.org>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [patch 4/6] DocBook: use <informalexample> for examples
Date: Wed, 06 Apr 2005 13:46:14 +0200 [thread overview]
Message-ID: <20050406114654.627959000@faui31y> (raw)
In-Reply-To: <20050406114610.287064000@faui31y>
[-- Attachment #1: docbook-informal-example.patch --]
[-- Type: text/plain, Size: 1205 bytes --]
DocBook: use <informalexample> for examples
From: Rich Walker <rw@shadow.org.uk>
Signed-off-by: Martin Waitz <tali@admingilde.org>
scripts/kernel-doc | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
Index: linux-docbook/scripts/kernel-doc
===================================================================
--- linux-docbook.orig/scripts/kernel-doc 2005-04-06 12:25:14.115702254 +0200
+++ linux-docbook/scripts/kernel-doc 2005-04-06 12:25:17.867134335 +0200
@@ -553,15 +553,20 @@ sub output_section_xml(%) {
# print out each section
$lineprefix=" ";
foreach $section (@{$args{'sectionlist'}}) {
- print "<refsect1>\n <title>$section</title>\n <para>\n";
+ print "<refsect1>\n";
+ print "<title>$section</title>\n";
if ($section =~ m/EXAMPLE/i) {
- print "<example><para>\n";
+ print "<informalexample><programlisting>\n";
+ } else {
+ print "<para>\n";
}
output_highlight($args{'sections'}{$section});
if ($section =~ m/EXAMPLE/i) {
- print "</para></example>\n";
+ print "</programlisting></example>\n";
+ } else {
+ print "</para>\n";
}
- print " </para>\n</refsect1>\n";
+ print "</refsect1>\n";
}
}
--
Martin Waitz
next prev parent reply other threads:[~2005-04-06 11:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-06 11:46 [patch 0/6] DocBook updates Martin Waitz
2005-04-06 11:46 ` [patch 1/6] DocBook: changes and extensions to the kernel documentation Martin Waitz
2005-04-06 20:06 ` Jeff Garzik
2005-04-06 11:46 ` [patch 2/6] DocBook: fix <void/> xml tag Martin Waitz
2005-04-06 11:46 ` [patch 3/6] DocBook: fix some descriptions Martin Waitz
2005-04-06 11:46 ` Martin Waitz [this message]
2005-04-06 11:46 ` [patch 5/6] DocBook: remove obsolete templates Martin Waitz
2005-04-06 11:46 ` [patch 6/6] DocBook: Use xmlto to process the DocBook files Martin Waitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050406114654.627959000@faui31y \
--to=tali@admingilde.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®