Browse Source

REPORT-70481 远程设计切换校验机制优化

html换行标签问题
feature/x
Yvan 2 years ago
parent
commit
f10af21690
  1. 12
      designer-base/src/main/java/com/fr/design/plugin/remind/PluginErrorDesignReminder.java

12
designer-base/src/main/java/com/fr/design/plugin/remind/PluginErrorDesignReminder.java

@ -24,8 +24,7 @@ public class PluginErrorDesignReminder implements PluginErrorReminder {
private static final String MESSAGE_ID = "plugin-invalidate-remind";
private static final String COMMA = "、";
private static final String COLON = ":";
private static final String NEW_LINE_TAG_HEAD = "<br>";
private static final String NEW_LINE_TAG_TAIL = "</br>";
private static final String NEW_LINE_TAG = "<br/>";
private static class Holder {
private static final PluginErrorDesignReminder INSTANCE = new PluginErrorDesignReminder();
@ -81,16 +80,13 @@ public class PluginErrorDesignReminder implements PluginErrorReminder {
*/
private String generateMessageContent(List<String> invalidatePluginNames) {
return new StringBuilder()
.append(NEW_LINE_TAG_HEAD)
.append(Toolkit.i18nText("Fine-Design_Plugin_Embed_Notice"))
.append(COLON)
.append(NEW_LINE_TAG_TAIL)
.append(NEW_LINE_TAG_HEAD)
.append(NEW_LINE_TAG)
.append(StableUtils.join(invalidatePluginNames, COMMA))
.append(NEW_LINE_TAG_TAIL)
.append(NEW_LINE_TAG_HEAD)
.append(NEW_LINE_TAG)
.append(Toolkit.i18nText("Fine-Design_Plugin_Embed_Description"))
.append(NEW_LINE_TAG_TAIL)
.append(NEW_LINE_TAG)
.toString();
}

Loading…
Cancel
Save