Free form Deluge code displayed differently than it is saved and executed. Subsequent edits cause errors.

Free form Deluge code displayed differently than it is saved and executed. Subsequent edits cause errors.

First example: If I switch to Form Builder view and then back to workflow view, the line:
    1. lstAnswerChoices = recAssessment.subAnswerChoices.ID.getall();
    is changed to:
      1. lstAnswerChoices = recAssessment.subAnswerChoices.getall();
      If I then try to save without making any changes I get an error.


      Second example: If I save the following line and navigate back to the function, it is displayed without the first set of parenthesis which returns a completely different result:
      1. strDisplayName = (rec.rtfQuestion + "<br />").getPrefix("<br />");
      Displayed like this but executes like the above:
      1. strDisplayName = rec.rtfQuestion + "<br />".getPrefix("<br />");
      The intent of the line is to take the first line of text from a rich text field. The line break is added for cases when there is only one line. Without that first set of parenthesis, the whole rich text field is returned instead of just the first line.