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 {