Alex's change to add #CRLF# as a built in variable to add a carriage return / linefeed to strings.

[MeterOne]
Meter=String
MeasureName=MeasureOne
MeasureName2=MeasureTwo
Text=%1#CRLF%2

[MeterTwo]
Meter=String
Text=This is a long string#CRLF#On two lines

Substitute="<br/>:"#CRLF#"
This commit is contained in:
jsmorley 2010-04-09 13:16:37 +00:00
parent 4cf4a84afb
commit c71a4096d1

View File

@ -104,6 +104,7 @@ void CConfigParser::SetDefaultVariables(CRainmeter* pRainmeter, CMeterWindow* me
SetVariable(L"PLUGINSPATH", pRainmeter->GetPluginPath()); SetVariable(L"PLUGINSPATH", pRainmeter->GetPluginPath());
SetVariable(L"CURRENTPATH", CRainmeter::ExtractPath(m_Filename)); SetVariable(L"CURRENTPATH", CRainmeter::ExtractPath(m_Filename));
SetVariable(L"ADDONSPATH", pRainmeter->GetPath() + L"Addons\\"); SetVariable(L"ADDONSPATH", pRainmeter->GetPath() + L"Addons\\");
SetVariable(L"CRLF", L"\n");
} }
if (meterWindow) if (meterWindow)
{ {