Improve word width calculation in the mac sheet messages

Words can be separated by "<br/>" if the message is multi-line and is written in html.
This fixes IDEA-179591.
This commit is contained in:
Kirill Likhodedov
2018-11-07 13:21:52 +03:00
parent c401381487
commit ef16ba70a8
@@ -60,7 +60,7 @@ public class SheetController implements Disposable {
private static final int GAP_BETWEEN_BUTTONS = 5;
private static final String SPACE_OR_LINE_SEPARATOR_PATTERN = "[\\s" + System.getProperty("line.separator") + "]+";
private static final String SPACE_OR_LINE_SEPARATOR_PATTERN = "([\\s" + System.getProperty("line.separator") + "]|(<br ?/?>))+";
// SHEET
public int SHEET_WIDTH = 400;