Switching the LaTeX Template formula multiple times results in syntax error

Describe the bug

In the LaTeX block, changing the template formula appends the LaTeX to the already existing formula which results in incorrect syntax

To Reproduce

Steps to reproduce the behavior:

    1. Go to any page
    1. Create a LaTeX block
    1. Switch the template formula few times

Expected behavior

Switching the formula should replace the formula field and not append it. If appending makes sense since a user would use different templates in a same LaTeX block, a space needs to be added after each template so that it won’t result in syntax error when several templates are added

System Information:

  • OS: Linux
  • Anytype Version: 20.2

Additional context
As seen in the video, adding a space should solve the issue

@lynxlove Thank you for your notice! It has been added to the bug tracker

Cannot reproduce this in 0.24.0. Marking it as solved