From 2f8a72b1b40df4b512c9f8f5d3f6e5b6767fbacd Mon Sep 17 00:00:00 2001 From: Jurgen Date: Wed, 8 Jan 2020 21:54:37 +0200 Subject: [PATCH] Update StyledTextField.java Improved vertical white space pattern. --- .../src/main/java/org/fxmisc/richtext/StyledTextField.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/richtextfx/src/main/java/org/fxmisc/richtext/StyledTextField.java b/richtextfx/src/main/java/org/fxmisc/richtext/StyledTextField.java index df05da18b..7c82295f0 100644 --- a/richtextfx/src/main/java/org/fxmisc/richtext/StyledTextField.java +++ b/richtextfx/src/main/java/org/fxmisc/richtext/StyledTextField.java @@ -26,7 +26,7 @@ public class StyledTextField extends StyledTextArea { - private final Pattern VERTICAL_WHITESPACE = Pattern.compile( "\\v" ); + private final Pattern VERTICAL_WHITESPACE = Pattern.compile( "\\v+" ); private final static String STYLE_SHEET; private final static double HEIGHT; static {