Skip to content

feat(novel): preserve description line breaks with shared formattedText#121

Draft
mrissaoussama wants to merge 1 commit into
NovelSourcery:mainfrom
mrissaoussama:feat/novel-description-line-breaks
Draft

feat(novel): preserve description line breaks with shared formattedText#121
mrissaoussama wants to merge 1 commit into
NovelSourcery:mainfrom
mrissaoussama:feat/novel-description-line-breaks

Conversation

@mrissaoussama

Copy link
Copy Markdown
Contributor

…t util

Many novel sources built descriptions with Jsoup's text(), which collapses
/

and newlines into single spaces. Add Element.formattedText() to keiyoushi.utils

Sources: lightnovelworld, lightnovelwp, lightnovelwpnovel, galaxynovels, asiannovel, honeyfeed, libread, lightnoveltranslation, lncrawler, lnori, mtlreader, mvlempyr, novelable, novelbuddy, novelfire, novelsknight, pawread, penguinsquad, ranobes, readnovelmtl, royalroad, scribblehub, vynovel.

Checklist:

  • Updated extVersionCode value in build.gradle for individual extensions
  • Updated overrideVersionCode or baseVersionCode as needed for all multisrc extensions
  • Referenced all related issues in the PR body (e.g. "Closes #xyz")
  • Added the isNsfw = true flag in build.gradle when appropriate
  • Have not changed source names
  • Have explicitly kept the id if a source's name or language were changed
  • Have tested the modifications by compiling and running the extension through Android Studio
  • Have removed web_hi_res_512.png when adding a new extension

…t util

Many novel sources built descriptions with Jsoup's text(), which collapses
<br>/<p> and newlines into single spaces. Add Element.formattedText() to
keiyoushi.utils (promoted from the madaranovel/lightnovelworld helpers) and
switch the affected sources to it so paragraph breaks survive.

Sources: lightnovelworld, lightnovelwp, lightnovelwpnovel, galaxynovels,
asiannovel, honeyfeed, libread, lightnoveltranslation, lncrawler, lnori,
mtlreader, mvlempyr, novelable, novelbuddy, novelfire, novelsknight, pawread,
penguinsquad, ranobes, readnovelmtl, royalroad, scribblehub, vynovel.

novelbuddy also drops the catch{} that masked its chapterListParse errors as an
empty list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant