A carriage return (/n) in the Api attribute breaks service stack add reference

This code generated by service stack add reference does not compile (note the line break in the api attribute)

///<summary>
///Back Office Operation. Add an Availability HelperIn the Auth Token there must be a backoffice scope
///</summary>
[Route("/availabilityHelpers", "POST")]
[Api("Back Office Operation. Add an Availability Helper

In the Auth Token there must be a backoffice scope")]

on the server side i had written

[Api("Back Office Operation. Add an Availability Helper /n In the Auth Token there must be a backoffice scope")]

on the client side it should probably be something like

 ///<summary>
    ///Back Office Operation. Add an Availability HelperIn the Auth Token there must be a backoffice scope
    ///</summary>
    [Route("/availabilityHelpers", "POST")]
    [Api(@"Back Office Operation. Add an Availability Helper
In the Auth Token there must be a backoffice scope")]

thank you
enrico

That’s still going to break languages that doesn’t support multi-line strings. The only sane thing would be to replace it with \n or remove/replace them with a space.

Although it would be preferred that you didn’t use new lines in attributes.

I’m now collapsing new lines in this commit.

This change is available from v4.0.47 that’s now available on MyGet.