From 809ca94e1cca45fbf40a2bfd84e8770536e3624b Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 7 Dec 2010 16:07:14 -0800 Subject: @returns tag should allow the content to be split into multiple lines --- docs/spec/collectSpec.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/spec') diff --git a/docs/spec/collectSpec.js b/docs/spec/collectSpec.js index 86af0810..f0783bdf 100644 --- a/docs/spec/collectSpec.js +++ b/docs/spec/collectSpec.js @@ -182,6 +182,12 @@ describe('collect', function(){ TAG.returns(doc, 'returns', '{string} descrip *tion*'); expect(doc.returns).toEqual({type: 'string', description: 'descrip tion'}); }); + + it('should support multiline content', function() { + TAG.returns(doc, 'returns', '{string} description\n new line\n another line'); + expect(doc.returns). + toEqual({type: 'string', description: 'description\n new line\n another line'}); + }); }); describe('@description', function(){ -- cgit v1.2.3