Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
25dfd1bb
Commit
25dfd1bb
authored
9 years ago
by
est31
Browse files
Options
Downloads
Patches
Plain Diff
Don't do formspec escaping twice for loading description
parent
be9024a3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
builtin/mainmenu/common.lua
+8
-8
8 additions, 8 deletions
builtin/mainmenu/common.lua
with
8 additions
and
8 deletions
builtin/mainmenu/common.lua
+
8
−
8
View file @
25dfd1bb
...
...
@@ -224,10 +224,10 @@ function menu_handle_key_up_down(fields,textlist,settingname)
configure_selected_world_params
(
newidx
)
end
return
true
end
return
false
end
...
...
@@ -237,7 +237,7 @@ function asyncOnlineFavourites()
if
not
menudata
.
public_known
then
menudata
.
public_known
=
{{
name
=
fgettext
(
"Loading..."
),
description
=
fgettext
(
"Try reenabling public serverlist and check your internet connection."
)
description
=
fgettext
_ne
(
"Try reenabling public serverlist and check your internet connection."
)
}}
end
menudata
.
favorites
=
menudata
.
public_known
...
...
@@ -262,22 +262,22 @@ end
--------------------------------------------------------------------------------
function
text2textlist
(
xpos
,
ypos
,
width
,
height
,
tl_name
,
textlen
,
text
,
transparency
)
local
textlines
=
core
.
splittext
(
text
,
textlen
)
local
retval
=
"textlist["
..
xpos
..
","
..
ypos
..
";"
..
width
..
","
..
height
..
";"
..
tl_name
..
";"
for
i
=
1
,
#
textlines
,
1
do
textlines
[
i
]
=
textlines
[
i
]:
gsub
(
"
\r
"
,
""
)
retval
=
retval
..
core
.
formspec_escape
(
textlines
[
i
])
..
","
end
retval
=
retval
..
";0;"
if
transparency
then
retval
=
retval
..
"true"
end
retval
=
retval
..
"]"
return
retval
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment