mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-24 10:54:36 -06:00
[Mobidziennik] Fix missing linebreaks when sending messages. (#63)
This commit is contained in:
parent
c1062cd7ed
commit
680a5dfea3
@ -503,10 +503,14 @@ class MessagesComposeFragment : Fragment(), CoroutineScope {
|
||||
text.toString()
|
||||
}
|
||||
|
||||
textHtml = textHtml
|
||||
.replace("</b><b>", "")
|
||||
.replace("</i><i>", "")
|
||||
.replace("p style=\"margin-top:0; margin-bottom:0;\"", "p")
|
||||
|
||||
if (app.profile.loginStoreType == LoginStore.LOGIN_TYPE_MOBIDZIENNIK) {
|
||||
textHtml = textHtml
|
||||
.replace("p style=\"margin-top:0; margin-bottom:0;\"", "span")
|
||||
.replace("</p>", "</span>")
|
||||
.replace("</p><br>", "</p>")
|
||||
.replace("<b>", "<strong>")
|
||||
.replace("</b>", "</strong>")
|
||||
.replace("<i>", "<em>")
|
||||
|
Loading…
Reference in New Issue
Block a user