To avoid a newline in multi-line strings

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Jul 23 20:24:41 PDT 2011


On 07/23/2011 07:40 PM, Nick Sabalausky wrote:
> "Andrei Alexandrescu"<SeeWebsiteForEmail at erdani.org>  wrote in message
>> std.string.outdent
>>
>
> It would make sense to name the "unindent" function "outdent", but the
> "normalize" does more than that: It also removes all whitespace-only lines
> from the top and bottom ("stripTopBottom") and (though this part is maybe
> far less important) it does a stripr on each remaining line.

It does too much. Just have it do outdenting and call it outdent, it 
will be useful to many. "Normalized text" means several things in NLP, 
neither of which is what you mean.

Andrei


More information about the Digitalmars-d mailing list