doc: fix mfcalc code.

* doc/bison.texinfo (Multi-function Calc): Add missing includes.
	Fix the rendering of the result: use @result and remove the
	initial tabulation in the actual code.
	Fix stylistic issues: avoid the , operator.
	Add extexi mark-up.
	* examples/extexi: Also support @smallexample.
This commit is contained in:
Akim Demaille
2012-02-16 15:07:23 +01:00
parent 0bb5783b38
commit f9c75dd016
2 changed files with 35 additions and 21 deletions

View File

@@ -52,11 +52,11 @@ BEGIN {
}
}
/^@example$/, /^@end example$/ {
/^@(small)?example$/, /^@end (small)?example$/ {
if (!file)
next;
if ($0 ~ /^@example$/)
if ($0 ~ /^@(small)?example$/)
{
input = files_output[file] ? "\n" : "";
@@ -69,7 +69,7 @@ BEGIN {
next;
}
if ($0 ~ /^@end example$/)
if ($0 ~ /^@end (small)?example$/)
{
if (input == "")
fatal("no contents: " file);