Skip to content

Regarding newline characters in Lua.Standard.BasicLibrary.Print #298

@XILO1106

Description

@XILO1106

In some Windows environments, such as Godot, you need to replace "\n" with "\r\n" for it to work correctly.

Current Behavior:

using var state = LuaState.Create();
state.OpenStandardLibraries();
_ = await state.DoStringAsync("for i = 1, 10 do print(i) end");

Output:

1
 2
  3
   4
    5
     6
      7
       8
        9
         10

Expected Output:

1
2
3
4
5
6
7
8
9
10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions