Commit 7f5c2989 authored by Stefan Niedermann's avatar Stefan Niedermann
Browse files

Fix MarkdownUtil#getEndOfLine


Signed-off-by: default avatarStefan Niedermann <info@niedermann.it>
parent 648186d8
......@@ -181,7 +181,7 @@ public class MarkdownUtil {
if (nextLinebreak > -1) {
return nextLinebreak;
}
return cursorPosition;
return s.length();
}
public static String getListItemIfIsEmpty(@NonNull String line) {
......
......@@ -86,6 +86,8 @@ public class MarkdownUtilTest extends TestCase {
assertEquals(79, endOfLine);
}
}
assertEquals(3, MarkdownUtil.getEndOfLine(" - ", 2));
}
@Test
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment