修复标题有缩进的问题

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

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

Loading…
Cancel
Save