Skip to content

Commit 65fca16

Browse files
committed
Changed newline check to include beginning of text.
1 parent 465d13c commit 65fca16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/watchers/EndOfParagraphMarkerAdder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class EndOfParagraphMarkerAdder(aztecText: AztecText, val verticalParagraphMargi
2525
textChangedEventDetails.start = start
2626
textChangedEventDetails.initialize()
2727

28-
if (!textChangedEventDetails.isNewLineButNotAtTheBeginning()) return
28+
if (!textChangedEventDetails.isNewLine()) return
2929

3030
val aztecText = aztecTextRef.get()
3131
if (aztecText != null && !aztecText.isTextChangedListenerDisabled() && aztecText.isInCalypsoMode) {

0 commit comments

Comments
 (0)