angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

API Reference includes an unnecessary "\n" in each page title.

Open brandonsalmon opened this issue 13 years ago • 1 comments

For example: http://docs.angularjs.org/api/ng.directive:a The title includes an extra line break where shown below. a (directive in module ng"\n") As a result the closing parentheses is not displayed at all.

This is caused because docs generation doesn't consider the "code" tag to be an inline tag.

The title is generated by Line 841-852 in https://github.com/angular/angular.js/blob/master/docs/src/ngdoc.js Most notably line 848 this.tag('code', module);

Line 69-70 in https://github.com/angular/angular.js/blob/master/docs/src/dom.js if (!INLINE_TAGS[name]) this.out.push('\n');

INLINE_TAGS only includes "a", "b", and "i" tags

brandonsalmon avatar Jun 03 '13 19:06 brandonsalmon

As part of our effort to clean out old issues, this issue is being automatically closed since it has been inactivite for over two months.

Please try the newest versions of Angular (1.0.8 and 1.2.0-rc.1), and if the issue persists, comment below so we can discuss it.

Thanks!

btford avatar Aug 24 '13 00:08 btford