Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
devezhao committed Dec 25, 2024
1 parent d78b94a commit 8e5ac1e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import com.rebuild.core.metadata.easymeta.DisplayType;
import com.rebuild.core.metadata.easymeta.EasyDecimal;
import com.rebuild.core.metadata.easymeta.EasyField;
import com.rebuild.rbv.data.Html5ReportGenerator;
import com.rebuild.utils.CommonsUtils;
import com.rebuild.utils.MarkdownUtils;
import lombok.extern.slf4j.Slf4j;
Expand Down Expand Up @@ -159,7 +158,7 @@ public static Object convert(EasyField field, Object value, String varName, Clas

} else if (type == DisplayType.NTEXT) {
if (thatFunc.equals(CLEAR_4NTEXT)) {
if (fromClazz == Html5ReportGenerator.class) {
if (fromClazz != null && fromClazz.getSimpleName().equals("Html5ReportGenerator")) {
String md2html = MarkdownUtils.render((String) value);
return "<div class='mdedit-content md2html'>" + md2html + "</div>";
} else {
Expand Down

0 comments on commit 8e5ac1e

Please sign in to comment.