Fix collapsed descriptions sometimes still having double new lines

This commit is contained in:
Jays2Kings 2021-09-22 13:40:08 -04:00
parent 41ee132db3
commit b0b6d92f2a

View file

@ -241,7 +241,7 @@ class MangaHeaderHolder(
desc.isNullOrBlank() -> itemView.context.getString(R.string.no_description)
binding.mangaSummary.maxLines != Int.MAX_VALUE -> desc.replace(
Regex(
"[\\r\\n]{2,}",
"[\\r\\n\\s*]{2,}",
setOf(RegexOption.MULTILINE)
),
"\n"