added Message

This commit is contained in:
Denis Molony 2022-03-18 19:22:07 +10:00
parent 48aca6e1eb
commit cf0cfd278b

View File

@ -68,11 +68,13 @@ abstract class Message extends AbstractFile
// ---------------------------------------------------------------------------------//
{
StringBuilder message = new StringBuilder ();
for (String line : lines)
message.append ("&nbsp;" + line + "&nbsp;<br>");
if (message.length () > 0)
for (int i = 0; i < 4; i++)
message.deleteCharAt (message.length () - 1); // remove <br> tag
message.deleteCharAt (message.length () - 1); // remove <br> tag
return message.toString ();
}