White spaces inbetween the text was getting deleted which caused the
display issue,so changing the regex in replaceAll to resolve the issue
Signed-off-by: Loshmitha <loshmitha@ericsson.com>
Change-Id: I48c5019fec167649f09766531a5f3e7b29c9d42f
Signed-off-by: Loshmitha <loshmitha@ericsson.com>
Signed-off-by: Sam Hague <shague@redhat.com>
}
- String outputStr = temp.toString().replaceAll("^\\s+|\\s+$", "");
+ String outputStr = temp.toString().replaceAll("^\\s", "");
output.append(outputStr);
if (output.toString().trim().endsWith(prompt)) {
int index = output.toString().lastIndexOf(prompt);