Source:
<code>public String getQuestionWithExistingResponseSubmissionFormHtml( boolean sessionIsOpen, int qnIdx, int responseIdx, String courseId, int totalNumRecipients, FeedbackResponseDetails existingResponseDetails) { FeedbackRankOptionsResponseDetails existingResponse = (FeedbackRankOptionsResponseDetails) existingResponseDetails; StringBuilder optionListHtml = new StringBuilder(); String optionFragmentTemplate = FormTemplates.RANK_SUBMISSION_FORM_OPTIONFRAGMENT; for (int i = 0; i < options.size(); i++) { String optionFragment = Templates.populateTemplate(optionFragmentTemplate, Slots.QUESTION_INDEX, Integer.toString(qnIdx), Slots.RESPONSE_INDEX, Integer.toString(responseIdx), "${optionIdx}", Integer.toString(i), Slots.DISABLED, sessionIsOpen ? "" : "disabled", <START> Slots.RANK_OPTION_VISIBILITY, "", <END> "${options}", getSubmissionOptionsHtmlForRankingOptions(existingResponse.getAnswerList().get(i)), Slots.FEEDBACK_RESPONSE_TEXT, Const.ParamsNames.FEEDBACK_RESPONSE_TEXT, Slots.RANK_OPTION_VALUE, Sanitizer.sanitizeForHtml(options.get(i))); optionListHtml.append(optionFragment).append(Const.EOL); } return Templates.populateTemplate( FormTemplates.RANK_SUBMISSION_FORM, "${rankSubmissionFormOptionFragments}", optionListHtml.toString(), Slots.QUESTION_INDEX, Integer.toString(qnIdx), Slots.RESPONSE_INDEX, Integer.toString(responseIdx), Slots.RANK_OPTION_VISIBILITY, "", "${Const.ParamsNames.FEEDBACK_QUESTION_RANKTORECIPIENTS}", Const.ParamsNames.FEEDBACK_QUESTION_RANKTORECIPIENTS, "${rankToRecipientsValue}", "false", "${Const.ParamsNames.FEEDBACK_QUESTION_RANKNUMOPTION}", Const.ParamsNames.FEEDBACK_QUESTION_RANKNUMOPTIONS, "${rankNumOptionValue}", Integer.toString(options.size()), "${Const.ParamsNames.FEEDBACK_QUESTION_RANKISDUPLICATESALLOWED}", Const.ParamsNames.FEEDBACK_QUESTION_RANKISDUPLICATESALLOWED, "${areDuplicatesAllowedValue}", Boolean.toString(areDuplicatesAllowed) ); }</code><technical_language>This additional indentation</technical_language>

Target:
public String getQuestionWithExistingResponseSubmissionFormHtml( boolean sessionIsOpen, int qnIdx, int responseIdx, String courseId, int totalNumRecipients, FeedbackResponseDetails existingResponseDetails) { FeedbackRankOptionsResponseDetails existingResponse = (FeedbackRankOptionsResponseDetails) existingResponseDetails; StringBuilder optionListHtml = new StringBuilder(); String optionFragmentTemplate = FormTemplates.RANK_SUBMISSION_FORM_OPTIONFRAGMENT; for (int i = 0; i < options.size(); i++) { String optionFragment = Templates.populateTemplate(optionFragmentTemplate, Slots.QUESTION_INDEX, Integer.toString(qnIdx), Slots.RESPONSE_INDEX, Integer.toString(responseIdx), Slots.OPTION_INDEX, Integer.toString(i), Slots.DISABLED, sessionIsOpen ? "" : "disabled", Slots.RANK_OPTION_VISIBILITY, "", Slots.OPTIONS, getSubmissionOptionsHtmlForRankingOptions(existingResponse.getAnswerList().get(i)), Slots.FEEDBACK_RESPONSE_TEXT, Const.ParamsNames.FEEDBACK_RESPONSE_TEXT, Slots.RANK_OPTION_VALUE, Sanitizer.sanitizeForHtml(options.get(i))); optionListHtml.append(optionFragment).append(Const.EOL); } return Templates.populateTemplate( FormTemplates.RANK_SUBMISSION_FORM, Slots.RANK_SUBMISSION_FORM_OPTION_FRAGMENTS, optionListHtml.toString(), Slots.QUESTION_INDEX, Integer.toString(qnIdx), Slots.RESPONSE_INDEX, Integer.toString(responseIdx), Slots.RANK_OPTION_VISIBILITY, "", Slots.RANK_PARAM_TO_RECIPIENT, Const.ParamsNames.FEEDBACK_QUESTION_RANKTORECIPIENTS, Slots.RANK_TO_RECIPIENTS_VALUE, "false", Slots.RANK_PARAM_NUM_OPTION, Const.ParamsNames.FEEDBACK_QUESTION_RANKNUMOPTIONS, Slots.RANK_NUM_OPTION_VALUE, Integer.toString(options.size()), Slots.RANK_PARAM_IS_DUPLICATES_ALLOWED, Const.ParamsNames.FEEDBACK_QUESTION_RANKISDUPLICATESALLOWED, Slots.RANK_ARE_DUPLICATES_ALLOWED_VALUE, Boolean.toString(isAreDuplicatesAllowed()) ); }