TheWilley / Text2Book

A web app to convert text to Minecraft books
https://thewilley.github.io/Text2Book/
MIT License
8 stars 1 forks source link

Square brackets don't work with commands #7

Closed Traehgniw closed 10 months ago

Traehgniw commented 10 months ago

Due to a strange error where I couldn't log in for no apparent reason an admin friend of mine used text2book's commands function to put some books in the game for me.

However they both started and ended up with square brackets and for some reason these square brackets ended up in the title, instead of in the text. It has also eaten a quotation mark.

I am aware this is very much an edge case

For example, this one is supposed to start with a [

image

and end with a "] image

and the title is not supposed to contain [0] image

Traehgniw commented 10 months ago

(closing because it turned out admin friend made a typo and i didn't notice)

TheWilley commented 10 months ago

The inclusion of brackets and numbers is automated during command generation, as I believed it would enhance the distinction among generated books with identical titles. Therefore, this behavior is not a bug. However, I realize that users might not prefer the presence of [n] in their book titles, and such should be able to exclude it. I have created another issue (#8) to acknowledge the problem.