mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user