This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository faxtomail. See https://gitlab.nuiton.org/codelutin/faxtomail.git commit e943e887028924d6b9000e0ad946cb7def49ee90 Author: jcouteau <couteau@codelutin.com> Date: Tue Jan 29 09:41:24 2019 +0100 Refs #10227 : Ajouter une vérification du contenu du mail pour forcer l'éditeur html si besoin Forçage sans vérification du contenu : - Utilisation html - Sinon utilisation du plain en html - Failback plain sur plain --- .../faxtomail/ui/swing/util/FaxToMailUIUtil.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/util/FaxToMailUIUtil.java b/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/util/FaxToMailUIUtil.java index 03d13ad0..48c02c2e 100644 --- a/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/util/FaxToMailUIUtil.java +++ b/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/util/FaxToMailUIUtil.java @@ -357,6 +357,21 @@ public final class FaxToMailUIUtil extends ApplicationUIUtil { } // if there is no html content or if no html content can be correctly displayed (ie throws an exception) + // then display plain content as html (prevent plain content with html tags to be raw displayed) + if (textPanePanel.getComponentCount() == 0) { + + contents = demandeUIModel.getPlainContent(); + + for (String content : contents) { + if (content != null) { + addHtmlTextPane(handler, demandeUIModel, textPanePanel, content); + } + } + + } + + // if there is no html content or if no html content can be correctly displayed (ie throws an exception) + // fail back to plain old TextPane if (textPanePanel.getComponentCount() == 0) { contents = demandeUIModel.getPlainContent(); -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.