mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-15 18:36:01 -04:00
changed DocumentParser.kt
This commit is contained in:
parent
24147280c9
commit
33e90cd844
@ -51,15 +51,11 @@ public class DocumentParser(private var listener: DocumentParser.SectionsListene
|
|||||||
title = sectionTitle.trim()
|
title = sectionTitle.trim()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
sections.add(DocumentSection().apply {
|
||||||
val section = DocumentSection()
|
this.id = id
|
||||||
section.title = section.title.trim();
|
title = sectionTitle.trim()
|
||||||
section.id = id;
|
level = element.takeLast(element.length - 1).toIntOrNull() ?: 0
|
||||||
val character: String = element.substring(element.length - 1)
|
})
|
||||||
val level = character.toIntOrNull() ?: 0
|
|
||||||
|
|
||||||
section.level = level
|
|
||||||
sections.add(section)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@JavascriptInterface
|
@JavascriptInterface
|
||||||
|
Loading…
x
Reference in New Issue
Block a user