Added RenderUtils and more tests.

This commit is contained in:
Erik C. Thauvin 2023-03-15 12:05:39 -07:00
parent 0da0e43aa5
commit d7659f4052
24 changed files with 148 additions and 89 deletions

View file

@ -76,10 +76,6 @@ public class EncodeQp implements ValueRenderer {
*/
@Override
public String render(Template template, String valueId, String differentiator) {
if (template.hasValueId(differentiator)) {
return toQuotedPrintable(template.getValue(differentiator));
} else {
return "";
}
return toQuotedPrintable(RenderUtils.fetchValue(template, differentiator));
}
}