mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-02-07 16:44:37 +01:00
[API/Mobidziennik] Fix duplicated line breaks when getting message.
This commit is contained in:
parent
af3b6f3a97
commit
6ec2bc6f21
@ -118,7 +118,7 @@ class MobidziennikWebGetMessage(override val data: DataMobidziennik,
|
|||||||
|
|
||||||
// this needs to be at the end
|
// this needs to be at the end
|
||||||
message.apply {
|
message.apply {
|
||||||
this.body = body.html().replace("\n", "<br>")
|
this.body = body.html()
|
||||||
|
|
||||||
clearAttachments()
|
clearAttachments()
|
||||||
content.select("ul li").map { it.select("a").first() }.forEach {
|
content.select("ul li").map { it.select("a").first() }.forEach {
|
||||||
|
@ -203,7 +203,7 @@ object MessagesUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||||
Html.fromHtml(text, Html.FROM_HTML_MODE_COMPACT)
|
Html.fromHtml(text, Html.FROM_HTML_MODE_LEGACY)
|
||||||
} else {
|
} else {
|
||||||
Html.fromHtml(text)
|
Html.fromHtml(text)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user