diff scripts/help/doc_cache_create.m @ 21758:ffad2baa90f7

maint: Use newlines to make code more readable.
author Rik <rik@octave.org>
date Fri, 20 May 2016 15:46:45 -0700
parents 8d894e463de6
children bac0d6f07a3e
line wrap: on
line diff
--- a/scripts/help/doc_cache_create.m	Fri May 20 12:03:39 2016 -0700
+++ b/scripts/help/doc_cache_create.m	Fri May 20 15:46:45 2016 -0700
@@ -66,6 +66,7 @@
 endfunction
 
 function [text, first_sentence, status] = handle_function (f, text, format)
+
   first_sentence = "";
   ## Skip internal functions starting with "__"
   if (strncmp (f, "__", 2))
@@ -93,9 +94,11 @@
 
   ## Get first sentence of help text
   first_sentence = get_first_help_sentence (f);
+
 endfunction
 
 function cache = create_cache (list)
+
   cache = {};
 
   ## For each function:
@@ -117,6 +120,7 @@
     cache(2, end) = text;
     cache(3, end) = first_sentence;
   endfor
+
 endfunction
 
 function cache = gen_doc_cache_in_dir (directory)
@@ -150,12 +154,14 @@
 endfunction
 
 function cache = gen_builtin_cache ()
+
   operators = __operators__ ();
   keywords = __keywords__ ();
   builtins = __builtins__ ();
   list = {operators{:}, keywords{:}, builtins{:}};
 
   cache = create_cache (list);
+
 endfunction