File tree Expand file tree Collapse file tree
brailleblaster-ebraille/src/main/kotlin/org/brailleblaster/ebraille/bbx2html Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ internal fun Element.processBlock(): Collection<org.jsoup.nodes.Element> = when(
3131
3232internal fun Element.processPageNum (): org.jsoup.nodes.Element = org.jsoup.nodes.Element (" span" ).attr(" role" , " doc-pagebreak" ).apply {
3333 val brl = getFirstChildElement(" brl" , UTD_NS )
34- attr(" aria-label" , brl.getAttributeValue(" printPage" ) ? : " " )
35- appendText(asciiToEbraille(brl.getAttributeValue(" printPageBrl" ) ? : " " ))
34+ attr(" aria-label" , brl.getAttributeValue(" printPage" ).orEmpty().ifEmpty { " - " } )
35+ appendText(asciiToEbraille(brl.getAttributeValue(" printPageBrl" ).orEmpty().ifEmpty { " \u2824 " } ))
3636}
3737
3838private fun Element.processStyle (): Collection <org.jsoup.nodes.Element > = when (style) {
You can’t perform that action at this time.
0 commit comments