Skip to content

Commit

Permalink
capion-with-value
Browse files Browse the repository at this point in the history
  • Loading branch information
manas-yu committed Dec 10, 2024
1 parent db92ebf commit 3e475fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ class ImageTagHandler(
Spannable.SPAN_INCLUSIVE_EXCLUSIVE
)
output.replace(openIndex, output.length, spannableBuilder)
} else consoleLogger.w("ImageTagHandler",
"Failed to parse $CUSTOM_IMG_ALT_TEXT_ATTRIBUTE")
} else consoleLogger.w(
"ImageTagHandler",
"Failed to parse $CUSTOM_IMG_ALT_TEXT_ATTRIBUTE"
)

if (!caption.isNullOrBlank()) {
output.append("\n").append(caption)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,10 @@ class ImageTagHandlerTest {
)

val parsedHtmlStr = parsedHtml.toString()
assertThat(parsedHtmlStr).isEqualTo("alt text 1\nThis is a caption"+
" and alt text 1\nThis is a caption")
assertThat(parsedHtmlStr).isEqualTo(
"alt text 1\nThis is a caption" +
" and alt text 1\nThis is a caption"
)
}

@Test
Expand Down

0 comments on commit 3e475fe

Please sign in to comment.