Mercurial > hg > octave-lyh
comparison scripts/help/help.m @ 11587:c792872f8942
all script files: untabify and strip trailing whitespace
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:35:29 -0500 |
parents | 5c18da80e28a |
children | 68ac95d2460c |
comparison
equal
deleted
inserted
replaced
11586:12df7854fa7c | 11587:c792872f8942 |
---|---|
68 return; | 68 return; |
69 endif | 69 endif |
70 | 70 |
71 ## Get help text | 71 ## Get help text |
72 [text, format] = get_help_text (name); | 72 [text, format] = get_help_text (name); |
73 | 73 |
74 ## Take action depending on help text format | 74 ## Take action depending on help text format |
75 switch (lower (format)) | 75 switch (lower (format)) |
76 case "plain text" | 76 case "plain text" |
77 status = 0; | 77 status = 0; |
78 case "texinfo" | 78 case "texinfo" |
85 do_contents (name); | 85 do_contents (name); |
86 return; | 86 return; |
87 otherwise | 87 otherwise |
88 error ("help: internal error: unsupported help text format: '%s'\n", format); | 88 error ("help: internal error: unsupported help text format: '%s'\n", format); |
89 endswitch | 89 endswitch |
90 | 90 |
91 ## Print text | 91 ## Print text |
92 if (status != 0) | 92 if (status != 0) |
93 warning ("help: Texinfo formatting filter exited abnormally; raw Texinfo source of help text follows...\n"); | 93 warning ("help: Texinfo formatting filter exited abnormally; raw Texinfo source of help text follows...\n"); |
94 endif | 94 endif |
95 | 95 |