sb.append(" \\par}");
// attachment(s)
OlatRootFolderImpl msgContainer = fm.getMessageContainer((Long)(getMetainfo(ForumFormatter.MANDATORY_METAINFO_KEY)), mn.getKey());
List attachments = msgContainer.getItems();
if (attachments != null && attachments.size() > 0){
VFSItem item = container.resolve("attachments");
if (item == null){
item = container.createChildContainer("attachments");
}
VFSContainer attachmentContainer = (VFSContainer)item;
attachmentContainer.copyFrom(msgContainer);
sb.append("{\\pard \\f0\\fs15 Attachment(s): ");
boolean commaFlag = false;
for (Iterator iter = attachments.iterator(); iter.hasNext();) {
VFSItem attachment = (VFSItem) iter.next();
if (commaFlag) sb.append(", ");
sb.append(attachment.getName());
commaFlag = true;
}
sb.append("} \\line");
}
sb.append("{\\pard \\brdrb\\brdrs\\brdrw10 \\par}");