Skip to content

Commit 3a295f1

Browse files
authored
Merge pull request #356 from wordpress-mobile/issue/350-add-paragraph-marker-on-first-line
Ability to add paragraph to the first line of editor.
2 parents 9843739 + 65fca16 commit 3a295f1

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
@@ -23,7 +23,7 @@ class EndOfParagraphMarkerAdder(aztecText: AztecText, val verticalParagraphMargi
2323
textChangedEventDetails.start = start
2424
textChangedEventDetails.initialize()
2525

26-
if (!textChangedEventDetails.isNewLineButNotAtTheBeginning()) return
26+
if (!textChangedEventDetails.isNewLine()) return
2727

2828
val aztecText = aztecTextRef.get()
2929
if (aztecText != null && !aztecText.isTextChangedListenerDisabled() && aztecText.isInCalypsoMode) {

0 commit comments

Comments
 (0)