Skip to content

Commit

Permalink
Add missing <br/> when exporting safeguards
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Oct 7, 2024
1 parent b43e83c commit 0c2047c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lizmap/dialogs/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1169,15 +1169,15 @@ def safeguards_to_markdown(self) -> str:
text = '<details>\n'
text += '<summary>List of safeguards :</summary>\n'
text += '<br/>\n'
text += '* Mode : {}\n'.format('normal' if self.radio_normal.isChecked() else 'safe')
text += '* Allow parent folder : {}\n'.format('yes' if self.radio_allow_parent_folder.isChecked() else 'no')
text += '* Mode : {}<br/>\n'.format('normal' if self.radio_normal.isChecked() else 'safe')
text += '* Allow parent folder : {}<br/>\n'.format('yes' if self.radio_allow_parent_folder.isChecked() else 'no')
if self.radio_allow_parent_folder.isChecked():
text += '* Number of parent : {} folder(s)\n'.format(self.safe_number_parent.value())
text += '* Prevent other drive : {}\n'.format('yes' if self.safe_other_drive.isChecked() else 'no')
text += '* Prevent PG service : {}\n'.format('yes' if self.safe_pg_service.isChecked() else 'no')
text += '* Prevent PG Auth DB : {}\n'.format('yes' if self.safe_pg_auth_db.isChecked() else 'no')
text += '* Force PG user&pass : {}\n'.format('yes' if self.safe_pg_user_password.isChecked() else 'no')
text += '* Prevent ECW : {}\n'.format('yes' if self.safe_ecw.isChecked() else 'no')
text += '* Number of parent : {} folder(s)<br/>\n'.format(self.safe_number_parent.value())
text += '* Prevent other drive : {}<br/>\n'.format('yes' if self.safe_other_drive.isChecked() else 'no')
text += '* Prevent PG service : {}<br/>\n'.format('yes' if self.safe_pg_service.isChecked() else 'no')
text += '* Prevent PG Auth DB : {}<br/>\n'.format('yes' if self.safe_pg_auth_db.isChecked() else 'no')
text += '* Force PG user&pass : {}<br/>\n'.format('yes' if self.safe_pg_user_password.isChecked() else 'no')
text += '* Prevent ECW : {}<br/>\n'.format('yes' if self.safe_ecw.isChecked() else 'no')
text += '</details>\n'
return text

Expand Down

0 comments on commit 0c2047c

Please sign in to comment.