[Lazarus] Resource strings and newline

Péter Gábor ptrg at freemail.hu
Wed Jun 18 18:32:21 CEST 2014



2014-06-18 09:44 keltezéssel, Mattias Gaertner írta:
> 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

What is about that all systems has its own LineEnding?
eg.: a single #10 or a single #13 is not marking EOL on windows, #13 is
not marking EOL on Linux, etc.

However EOLs of other systems seems to have no special meaning on each
systems, just a whitespace...

-- 
Péter Gábor
ptrg at freemail.hu




More information about the Lazarus mailing list