tree2code(tree, prettyprint=%) does not take into account the indentation width declared in Scinotes preferences
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
tree2code(tree, prettyprint=%) does not take into account the indentation width declared in Scinotes preferences.
ERROR LOG:
----------
None. Constant indentation width set to 2, whatever is the Scinotes setting.
HOW TO REPRODUCE THE BUG:
-------------------------
function test()
disp("OK")
endfunction
c = tree2code(macr2tree(test),%t)
path = "//interface/scinotes/display/body/scinotes-display"
tmp = evstr(getPreferencesValue(path, "indent-size", "SCIHOME/XConfiguration.xml"))
part(c(2),1:(tmp+1)) == blanks(tmp)+"d"