修复标题有缩进的问题

pull/1319/head
gedoor 4 years ago
parent 53897e641d
commit 15ece77407
  1. 0
      app/src/main/assets/help/jsExtensions.md
  2. 4
      app/src/main/java/io/legado/app/help/ContentProcessor.kt

@ -127,9 +127,13 @@ class ContentProcessor private constructor(
it.code <= 0x20 || it == ' '
}
if (paragraph.isNotEmpty()) {
if (contents.isEmpty() && includeTitle) {
contents.add(paragraph)
} else {
contents.add("${ReadBookConfig.paragraphIndent}$paragraph")
}
}
}
return contents
}

Loading…
Cancel
Save