Skip to content

Commit

Permalink
Hadith: fix double endline formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MKSherbini committed Oct 18, 2024
1 parent f53e90e commit 19573af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "noor",
"name": "Noor",
"version": "0.0.5",
"version": "0.0.6",
"minAppVersion": "0.15.0",
"description": "Aims to help Muslims stay enlightened with Islam, Quran, Hadith, and Sunnah",
"author": "MKSherbini",
Expand Down
2 changes: 1 addition & 1 deletion src/api/HadithApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ ${content}
if (hadith.explanation == null || hadith.explanation.length == 0) return '';

let title = this.plugin.settings.hadithLanguage == 'ar' ? 'الشرح' : 'Explanation';
return `>> - **${title}**: ${hadith.explanation.replace(/\r\n\r\n/g, '\r\n')}`;
return `>> - **${title}**: ${hadith.explanation.replace(/(\r\n\r\n)|(\n\n)/g, '\r\n')}`;
}
}

0 comments on commit 19573af

Please sign in to comment.