mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Limit changelog size
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user