Commit 4bd889bf0e
Unsigned
Layout: unified · split
lib/awesome-privacy-readme-gen.py +4 −1
| @@ -116,7 +116,10 @@ def makeAwesomePrivacy(data): | ||
| 116 | 116 | # If word of warning exists, append it |
| 117 | 117 | if section.get('wordOfWarning'): |
| 118 | 118 | markdown += "<details>\n<summary>⚠️ <b>Word of Warning</b></summary>\n\n" |
| 119 | markdown += f"> {section.get('wordOfWarning')}\n\n" | |
| 119 | word_of_warning = '\n'.join( | |
| 120 | f"> {line}".rstrip() for line in section.get('wordOfWarning').strip().split('\n') | |
| 121 | ) | |
| 122 | markdown += f"{word_of_warning}\n\n" | |
| 120 | 123 | markdown += "</details>\n\n" |
| 121 | 124 | # If notable mentions exists, append it (either as a list or a single string) |
| 122 | 125 | if section.get('notableMentions'): |