Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

signs eat backslashes #2

Closed
Niklp09 opened this issue Jul 27, 2023 · 1 comment
Closed

signs eat backslashes #2

Niklp09 opened this issue Jul 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Niklp09
Copy link
Member

Niklp09 commented Jul 27, 2023

write a sign containing "\", it's displayed properly, but when you edit it again, formspec treating them as escapes and they disappear

yl issue: https://gitea.your-land.de/your-land/bugtracker/issues/5016

@Niklp09 Niklp09 added the bug Something isn't working label Jul 27, 2023
@OgelGames
Copy link

OgelGames commented Jul 27, 2023

Looks like it's missing a minetest.formspec_escape(), which is bad 👀

meta:set_string("display_text", text)
fs = "textarea[0.5,0.7;5.5,2;display_text;"..F("Text")..""..
extralabel..";${display_text}]"

Only problem is you can't just escape the text before saving it in display_text, because that string is also used for creating the entities, so you would see the escapes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants