aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec
diff options
context:
space:
mode:
Diffstat (limited to 'docs/spec')
-rw-r--r--docs/spec/ngdocSpec.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/spec/ngdocSpec.js b/docs/spec/ngdocSpec.js
index 35dcc4cb..b4a301a7 100644
--- a/docs/spec/ngdocSpec.js
+++ b/docs/spec/ngdocSpec.js
@@ -340,6 +340,14 @@ describe('ngdoc', function(){
toContain('<a href="./static.html">./static.html</a>');
});
+ it('shoul support line breaks in @link', function(){
+ var doc = new Doc("@description " +
+ '{@link\nurl\na\nb}');
+ doc.parse();
+ expect(doc.description).
+ toContain('<a href="#!url">a b</a>');
+ });
+
});
describe('@example', function(){