-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Hello, thanks for a very useful language conversion tool. I have identified a bug where the definition of an output function is not indented, resulting in an Indentation Error. I tested the conditional statement indent and it worked as expected. Please see the below test using matlabparser/parser.py:
file.m
% if statement indent test
if true
disp("if statement")
end
% function test
function ret = add_one(a)
ret = a + 1;
end
x = add_one(2)
file.py
# if statement indent test
if True:
print('if statement')
# function test
def add_one(a = None):
ret = a + 1
return ret
x = add_one(2)
I will look more into this issue if it is found to be reproducible.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed