Mercurial > octave-antonio
comparison scripts/help/doc.m @ 19833:9fc020886ae9
maint: Clean up m-files to follow Octave coding conventions.
Try to trim long lines to < 80 chars.
Use '##' for single line comments.
Use '(...)' around tests for if/elseif/switch/while.
Abut cell indexing operator '{' next to variable.
Abut array indexing operator '(' next to variable.
Use space between negation operator '!' and following expression.
Use two newlines between endfunction and start of %!test or %!demo code.
Remove unnecessary parens grouping between short-circuit operators.
Remove stray extra spaces (typos) between variables and assignment operators.
Remove stray extra spaces from ends of lines.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 23 Feb 2015 14:54:39 -0800 |
parents | 4197fc428c7d |
children | 7503499a252b |
comparison
equal
deleted
inserted
replaced
19832:a1acca0c2216 | 19833:9fc020886ae9 |
---|---|
52 else | 52 else |
53 fname = ""; | 53 fname = ""; |
54 endif | 54 endif |
55 | 55 |
56 ## if GUI is running, let it display the function | 56 ## if GUI is running, let it display the function |
57 if isguirunning () | 57 if (isguirunning ()) |
58 __octave_link_show_doc__ (fname); | 58 __octave_link_show_doc__ (fname); |
59 else | 59 else |
60 | 60 |
61 if (ftype == 2 || ftype == 3) | 61 if (ftype == 2 || ftype == 3) |
62 ffile = which (fname); | 62 ffile = which (fname); |