Skip to content
Snippets Groups Projects
Commit fab99a62 authored by Taras's avatar Taras
Browse files

Remove logs

parent 57ed93f2
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,6 @@ import android.graphics.drawable.ColorDrawable
import android.net.Uri
import android.text.Editable
import android.util.AttributeSet
import android.util.Log
import android.view.LayoutInflater
import android.view.inputmethod.InputMethodManager
import android.widget.LinearLayout
......@@ -380,20 +379,16 @@ class PreviewPostView(
}
}
private fun EditorEditText.getFormattedMarkdown(): String {
val a = getMarkdown()
.replace("<br><br>", "")
.replace("\\", "")
.replace("__", "**")
Log.d("MyLog", "get $a")
return a
}
private fun EditorEditText.getFormattedMarkdown(): String = getMarkdown()
.replace("<br><br>", "")
.replace("\\", "")
.replace("__", "**")
private fun EditorEditText.setFormattedMarkdown(message: String) {
val formattedMessage = message
.replace("\\r\\r|\\n\\n".toRegex(), "<br><br>")
.replace("__", "**")
Log.d("MyLog", "set $formattedMessage")
setMarkdown(formattedMessage)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment