Limit changelog size

This commit is contained in:
M66B 2024-05-15 19:14:42 +02:00
parent c9f22fbf97
commit 4d27446860
4 changed files with 12 additions and 0 deletions

View File

@ -295,6 +295,8 @@ Preview versions are available [here](https://bitbucket.org/M66B/fairemail-test/
* Updated libraries (Apache Compress, Bugsnag, Bouncy Castle, Jsoup)
* Updated [translations](https://crowdin.com/project/open-source-email)
<!-- truncate here -->
### 1.2145 - 2023-12-30
* Added Adguard filter list to remove tracking parameters from links, see [the FAQ](https://github.com/M66B/FairEmail/blob/master/FAQ.md#faq200)

View File

@ -295,6 +295,8 @@ Preview versions are available [here](https://bitbucket.org/M66B/fairemail-test/
* Updated libraries (Apache Compress, Bugsnag, Bouncy Castle, Jsoup)
* Updated [translations](https://crowdin.com/project/open-source-email)
<!-- truncate here -->
### 1.2145 - 2023-12-30
* Added Adguard filter list to remove tracking parameters from links, see [the FAQ](https://github.com/M66B/FairEmail/blob/master/FAQ.md#faq200)

View File

@ -88,6 +88,12 @@ public class FragmentDialogMarkdown extends FragmentDialogBase {
markdown = Helper.readStream(is);
}
if ("CHANGELOG.md".equals(name)) {
int pos = markdown.indexOf("<!-- truncate here -->");
if (pos > 0)
markdown = markdown.substring(0, pos);
}
markdown = markdown
.replace("/FAQ.md#FAQ", "/FAQ.md#faq")
.replace("/FAQ.md#user-content-faq", "/FAQ.md#faq")

View File

@ -295,6 +295,8 @@ Wintonotitan
* Updated libraries (Apache Compress, Bugsnag, Bouncy Castle, Jsoup)
* Updated translations
<!-- truncate here -->
1.2145 - 2023-12-30
* Added Adguard filter list to remove tracking parameters from links, see the FAQ