Commit c659b598 authored by Guillaume Lépine's avatar Guillaume Lépine
Browse files

FORMS-650: Slight improvements to pdf export

parent 215dcd90
......@@ -40,6 +40,7 @@ import java.util.List;
import java.util.stream.Collectors;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.pdfbox.exceptions.COSVisitorException;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
......@@ -183,7 +184,7 @@ public class FormResponsePdfExport
{
PdfCell cell = new PdfCell( );
cell.setTitle( key );
cell.setValue( listResponseValue.stream( ).collect( Collectors.joining( ";" ) ) );
cell.setValue( listResponseValue.stream( ).filter( StringUtils::isNotEmpty ).collect( Collectors.joining( ";" ) ) );
if ( group != null )
{
String groupName = group.getTitle( );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment