String vs. Long Strings in Lua - wofsauge/External-Item-Descriptions GitHub Wiki

The mod allows the use of data-types "string" and "long string" for a description definition.

A normal "string" for a description might looks like this:

"Line 1#{{Heart}} Line 2#Line 3"

Since strings can only be written in one line, the # markup is used to indicate linebreaks inside of a description.

"Long String" formatting can be used to make such description more readable and makes writing and editing descriptions more userfriendly:

[[
Line 1
{{Heart}} Line 2
Line 3
]]

The user is free to use either of these formatting methods.

TIP:

If you use Long String formatting, its recommended to use Tabs instead of Spaces for line indentation, as a space at the start of a line affects if the icon- Markup at the start of a line should be used as a bulletpoint or not. Tabs will not cause such an issue.