Commit c548b2a9 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Bug fix.

Was not working if the second line of the test was empty and had no trailing space.
parent 9e1c3232
......@@ -86,7 +86,7 @@ for i=1:nn
tid = fopen([FNAME '_test_' int2str(i) '.m'],'w');
fprintf(tid,['function [T,t,LOG] = ' FNAME '_test_' int2str(i) '()\n']);
fprintf(tid,['try\n']);
if isequal(file{b1(i)+1}(1:3), '%$ ') || isequal(file{b1(i)+1}(1:2), '%$')
if (length(file{b1(i)+1})>2 && isequal(file{b1(i)+1}(1:3), '%$ ')) || (length(file{b1(i)+1})>1 && isequal(file{b1(i)+1}(1:2), '%$'))
remove_first_columns = true;
else
remove_first_columns = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment