Community
Participate
Working Groups
Trying to use auto indentation with Ctrl+i, but the following line messes it up: v_modified := f_int_replaceSubstrings(v_string, "\\", ""); We found, that "\\" somehow breaks the indentation, and every row after that starts at the 5th position.
The error does not occur anymore in titan.EclipsePlug-ins 6.2.0 It has been corrected in early versions. The test source code is as follows. //Bug 519373 - Broken indentation after "\\" module AutoIndentTest { type component CT { } function f(in charstring p_1, in charstring p_2, in charstring p_3) return integer { return 1; } const charstring c_cs := "viktor vereb" function tc_1() runs on CT { var integer v_modified := 0; v_modified := f(c_cs, "\\",""); v_modified:= 2; } control{ } }
Already corrected
The error can be reproduced by this code. The difference is the commented line "//preconditions". //Bug 519373 - Broken indentation after "\\" module AutoIndentTest { type component CT { } function f(in charstring p_1, in charstring p_2, in charstring p_3) return integer { return 1; } const charstring c_cs := "viktor vereb" function tc_1() runs on CT { var integer v_modified := 0; v_modified := f(c_cs, "\\",""); //preconditions v_modified:= 2; } control{ } }
This bug was migrated to GitLab: https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues