How to enforce line break in visible text?

Place to get help with not working mods / modding interface.
Tomhero200
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Jul 27, 2024 5:37 pm
Contact:

How to enforce line break in visible text?

Post by Tomhero200 »

Hello everyone;
I have the following question: How do I manually place a line break in a string, e. g. the mod description in info.json?
Any answer is appreciated.
Thanks
robot256
Smart Inserter
Smart Inserter
Posts: 1225
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: How to enforce line break in visible text?

Post by robot256 »

Use the C-style escape sequence "\n" (backslash n)
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Tomhero200
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Jul 27, 2024 5:37 pm
Contact:

Re: How to enforce line break in visible text?

Post by Tomhero200 »

Works, thanks!
Post Reply

Return to “Modding help”