diff --git a/app/src/main/java/com/omgodse/notally/helpers/ExportHelper.kt b/app/src/main/java/com/omgodse/notally/helpers/ExportHelper.kt index 92d3e924..275da527 100644 --- a/app/src/main/java/com/omgodse/notally/helpers/ExportHelper.kt +++ b/app/src/main/java/com/omgodse/notally/helpers/ExportHelper.kt @@ -293,12 +293,14 @@ class ExportHelper(private val context: Context, private val fragment: Fragment) stringWriter.toString() } - return if (xmlReader.getTitle().isEmpty()) { + val fileName = if (xmlReader.getTitle().isEmpty()) { val words = body.split(" ") if (words.size > 1) { "${words[0]} ${words[1]}" } else words[0] } else xmlReader.getTitle() + + return fileName.replace("/", "") } private fun getHTML(file: File): JsoupDocument {