forked from openlp/openlp
Adjust display of available placeholders to mako syntax
This commit is contained in:
parent
51e644711d
commit
33e3bcd1d5
|
@ -160,7 +160,7 @@ class SongsTab(SettingsTab):
|
||||||
.format(ph=translate('SongsPlugin.SongsTab', 'Placeholder'),
|
.format(ph=translate('SongsPlugin.SongsTab', 'Placeholder'),
|
||||||
desc=translate('SongsPlugin.SongsTab', 'Description'))
|
desc=translate('SongsPlugin.SongsTab', 'Description'))
|
||||||
for placeholder in placeholders:
|
for placeholder in placeholders:
|
||||||
placeholder_info += '<tr><td>{{{{{pl}}}}}</td><td>{des}{opt}</td></tr>\n'\
|
placeholder_info += '<tr><td>${{{pl}}}</td><td>{des}{opt}</td></tr>\n'\
|
||||||
.format(pl=placeholder[0], des=placeholder[1],
|
.format(pl=placeholder[0], des=placeholder[1],
|
||||||
opt=(' ¹' if placeholder[2] else '') +
|
opt=(' ¹' if placeholder[2] else '') +
|
||||||
(' ²' if placeholder[3] else ''))
|
(' ²' if placeholder[3] else ''))
|
||||||
|
|
Loading…
Reference in New Issue