]> git.baikalelectronics.ru Git - kernel.git/commit
kernel-doc: don't mangle whitespace in Example section
authorDaniel Santos <daniel.santos@pobox.com>
Fri, 5 Oct 2012 00:15:10 +0000 (17:15 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Oct 2012 18:05:13 +0000 (03:05 +0900)
commit8fc1eb9d1592bd6c2ff1e0b92d9979bc2ef28d2a
tree06faa8cb0e478646260826063b2dd45f3417502a
parentdc48ca65d9fc4a4ad281dd3b9a784fe8d6d962ff
kernel-doc: don't mangle whitespace in Example section

A section with the name "Example" (case-insensitive) has a special meaning
to kernel-doc.  These sections are output using mono-type fonts.  However,
leading whitespace is stripped, thus robbing a lot of meaning from this,
as indented code examples will be mangled.

This patch preserves the leading whitespace for "Example" sections.  More
accurately, it preserves it for all sections, but removes it later if the
section isn't an "Example" section.

Signed-off-by: Daniel Santos <daniel.santos@pobox.com>
Cc: Randy Dunlap <rdunlap@xenotime.net>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/kernel-doc