1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-04-24 22:46:41 +07:00

fixed newline posting

This commit is contained in:
Fedor Katurov 2021-05-21 11:14:43 +07:00
parent b8c87563e9
commit c580c57e72

View file

@ -48,7 +48,7 @@ export class Template<
* Themes the template with values * Themes the template with values
*/ */
public theme = (values: V) => { public theme = (values: V) => {
return hb.compile(this.template)(values).replace(/\n/g, "\n\n"); return hb.compile(this.template)(values).replace(/\n+/g, "\n\n");
}; };
/** /**