Ticket #8: Changed HTML format of help text since <br> tag seams not to work with the brand new element for Android ...

This commit is contained in:
lomion 2020-08-18 15:31:13 +02:00
parent 03a63987ef
commit 90476dd9eb

View file

@ -62,10 +62,10 @@ class TmdbBot(Plugin):
await evt.respond(content) await evt.respond(content)
async def send_help(self, evt: MessageEvent) -> None: async def send_help(self, evt: MessageEvent) -> None:
html = """Use <b>!tmdb id movie {tmdb id}</b> to get movie detail for tmdb-id.</br> html = """<p>Use <b>!tmdb id movie {tmdb id}</b> to get movie detail for tmdb-id.</p>
Use <b>!tmdb movie {title} [y:{release year}]</b> to get movie detail based on the given title.</br> <p>Use <b>!tmdb movie {title} [y:{release year}]</b> to get movie detail based on the given title.</p>
Use <b>!tmdb language {language}</b> to set your prefered language.</br> <p>Use <b>!tmdb language {language}</b> to set your prefered language.</p>
Use <b>!tmdb tvshow {title}</b> to get detail about a tv show based on the given title.</br>""" <p>Use <b>!tmdb tvshow {title}</b> to get detail about a tv show based on the given title.</p>"""
content = TextMessageEventContent( content = TextMessageEventContent(
msgtype=MessageType.TEXT, format=Format.HTML, msgtype=MessageType.TEXT, format=Format.HTML,
body=f"Help for TMDB Bot", body=f"Help for TMDB Bot",