Skip to content

Commit

Permalink
Add check for empty transformed content
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Brown committed Mar 29, 2009
1 parent a677cf5 commit 19a717d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void convert() throws IOException, InvalidFormatException
}

String text = converter.convert(reader, options);
if (text != null)
if (text != null && text.trim().length() > 0)
{
IOUtils.write(text, writer);
}
Expand Down

0 comments on commit 19a717d

Please sign in to comment.