Skip to content

Commit

Permalink
fix markdown option for ShareAll
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen L. <lrq3000@gmail.com>
  • Loading branch information
lrq3000 committed Jan 13, 2023
1 parent 6531daa commit 1aff93c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/com/lolo/io/onelist/PersistenceHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,10 @@ class PersistenceHelper(private val app: Activity) {
// Fetch list of all lists
var lists = getAllLists()
// Concat content of every lists
var lists_concat = "" // "# ALL LISTS\n-----\n\n"
var lists_concat = if (shareMarkdown) "# ALL LISTS\n-----\n\n" else "ALL LISTS\n-----\n\n"
for (l in lists) {
// set markdown template if markdown is selected in preferences
l.markdown = shareMarkdown
// toString() is overloaded to output the list's title, content and an ad for the software, except if toStringNoAd() is used
lists_concat += l.toStringNoAd() + "\n\n----\n\n"
}
Expand Down

0 comments on commit 1aff93c

Please sign in to comment.