comparison scripts/help/private/__strip_html_tags__.m @ 29901:ee84485289ce

maint: cuddle postfix operator with variable for clarity. * __strip_html_tags__.m: cuddle postfix operator with variable for clarity.
author Rik <rik@octave.org>
date Wed, 21 Jul 2021 09:42:28 -0700
parents 7854d5752dd2
children 796f54d4ddbf
comparison
equal deleted inserted replaced
29900:da6e5914ddaf 29901:ee84485289ce
58 els = find (text == "\n"); 58 els = find (text == "\n");
59 dels = diff (els); 59 dels = diff (els);
60 groups = [els(1), 1]; # list containing [start, length] of each group 60 groups = [els(1), 1]; # list containing [start, length] of each group
61 for k = 1:length (dels) 61 for k = 1:length (dels)
62 if (dels (k) == 1) 62 if (dels (k) == 1)
63 groups(end, 2) ++; 63 groups(end, 2)++;
64 else 64 else
65 groups(end+1, 1:2) = [els(k+1), 1]; 65 groups(end+1, 1:2) = [els(k+1), 1];
66 endif 66 endif
67 endfor 67 endfor
68 68