[Lazarus] Resource strings and newline

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Jun 18 09:44:54 CEST 2014


On Tue, 17 Jun 2014 21:12:02 +0300
Juha Manninen <juha.manninen62 at gmail.com> wrote:

> I must say I agree mostly.
> Does anybody know why parameters are currently used for newlines? Logically
> parameters are meant for varying data.

In the old days special characters were not converted properly.

I just tested:

'A'#10'BC' is converted to
msgid ""
"A\n"
"BC\n"

Note the new line behind BC. When this is fixed, I can adapt the 'Make
resourcestring dialog'.

Also all line breaks (#10, #13, #13#10) are converted to \n and on
loading to the system line break. That's ok for all strings
passed to the LCL, but all other must be checked manually. 

Mattias




More information about the Lazarus mailing list