Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 1c15cdc

Browse files
treyhunnerIgorMinar
authored andcommitted
style: fix whitespace issues
Closes #8277 Conflicts: docs/content/guide/migration.ngdoc
1 parent 0bd329d commit 1c15cdc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+61
-61
lines changed

CONTRIBUTING.md

+2-2

TRIAGING.md

+2-2

docs/app/assets/css/prettify.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pre.prettyprint.linenums {
4040
}
4141
ol.linenums {
4242
margin: 0 0 0 33px; /* IE indents via margin-left */
43-
}
43+
}
4444
ol.linenums li {
4545
padding-left: 12px;
4646
font-size:12px;

docs/app/assets/js/angular-bootstrap/bootstrap.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ directive.runnableExample = ['$templateCache', '$document', function($templateCa
1111
'ng-repeat="tab in tabs track by $index" ' +
1212
'href="" ' +
1313
'class="btn"' +
14-
'ng-click="setTab($index)">' +
14+
'ng-click="setTab($index)">' +
1515
' {{ tab }}' +
1616
' </a>' +
1717
'</nav>';
@@ -103,7 +103,7 @@ directive.syntax = function() {
103103
restrict: 'A',
104104
link: function(scope, element, attrs) {
105105
function makeLink(type, text, link, icon) {
106-
return '<a href="' + link + '" class="btn syntax-' + type + '" target="_blank" rel="nofollow">' +
106+
return '<a href="' + link + '" class="btn syntax-' + type + '" target="_blank" rel="nofollow">' +
107107
'<span class="' + icon + '"></span> ' + text +
108108
'</a>';
109109
};
@@ -307,7 +307,7 @@ var popoverElement = function() {
307307
return this.titleElement.html(value);
308308
},
309309

310-
content : function(value) {
310+
content : function(value) {
311311
if(value && value.length > 0) {
312312
value = marked(value);
313313
}

docs/app/src/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ angular.module('docsApp', [
2020

2121
.config(function($locationProvider) {
2222
$locationProvider.html5Mode(true).hashPrefix('!');
23-
});
23+
});

docs/app/src/errors.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ angular.module('errors', ['ngSanitize'])
5959
element.html(errorLinkFilter(interpolate.apply(null, formatArgs), '_blank'));
6060
}
6161
};
62-
}]);
62+
}]);

docs/app/src/examples.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ angular.module('examples', [])
6969
formPostData('http://plnkr.co/edit/?p=preview', postData);
7070
});
7171
};
72-
}]);
72+
}]);

docs/app/src/navigationService.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ angular.module('docsApp.navigationService', [])
2121

2222
}
2323
};
24-
});
24+
});

docs/app/src/versions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ angular.module('versions', [])
2828

2929
$window.location = version.docsUrl + currentPagePath;
3030
};
31-
}]);
31+
}]);

docs/app/test/docsSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ describe("DocsController", function() {
3131
expect($window._gaq.pop()).toEqual(['_trackPageview', 'x/y/z']);
3232
}));
3333
});
34-
});
34+
});

docs/config/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = function(config) {
99

1010
config = basePackage(config);
1111
config = examplesPackage(config);
12-
12+
1313
config.append('processing.processors', [
1414
require('./processors/git-data'),
1515
require('./processors/error-docs'),

docs/config/processors/debug-dump.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ function writeFile(file, content) {
3030
return fs.makeTree(fs.directory(file)).then(function() {
3131
return fs.write(file, content, 'wb');
3232
});
33-
}
33+
}

docs/config/processors/error-docs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = {
5656

5757
return docs.concat(_.values(errorNamespaces));
5858
}
59-
};
59+
};

docs/config/processors/git-data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ module.exports = {
1717
process: function(extraData, gitData) {
1818
extraData.git = gitData;
1919
}
20-
};
20+
};

docs/config/processors/keywords.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ module.exports = {
8585
});
8686

8787
}
88-
};
88+
};

docs/config/processors/versions-data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ module.exports = {
3535

3636
docs.push(versionDoc);
3737
}
38-
};
38+
};

docs/config/templates/error.template.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ <h2>Description</h2>
1414
{$ doc.description | marked $}
1515
</div>
1616

17-
{% endblock %}
17+
{% endblock %}

docs/config/templates/errorNamespace.template.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ <h1>{$ doc.name $}</h1>
2525
</div>
2626
</div>
2727

28-
{% endblock %}
28+
{% endblock %}

docs/config/templates/protractorTests.template.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ describe("{$ doc.description $}", function() {
44
});
55

66
{$ doc.innerTest $}
7-
});
7+
});

docs/config/templates/runnableExample.template.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
</div>
2525

2626
{# Be aware that we need these extra new lines here or marked will not realise that the <div>
27-
above is HTML and wrap each line in a <p> - thus breaking the HTML #}
27+
above is HTML and wrap each line in a <p> - thus breaking the HTML #}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{% include 'overview.template.html' %}
1+
{% include 'overview.template.html' %}

docs/content/error/$injector/cdep.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ When an instance of `MyCtrl` is created, the service `myService` will be created
2323
by the `$injector`. `myService` depends on itself, which causes the `$injector`
2424
to detect a circular dependency and throw the error.
2525

26-
For more information, see the {@link guide/di Dependency Injection Guide}.
26+
For more information, see the {@link guide/di Dependency Injection Guide}.

docs/content/error/$injector/itkn.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ To avoid the error, always use string literals for dependency injection annotati
2323
tokens.
2424

2525
For an explanation of what injection annotations are and how to use them, refer
26-
to the {@link guide/di Dependency Injection Guide}.
26+
to the {@link guide/di Dependency Injection Guide}.

docs/content/error/$injector/pget.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ angular.module("myApp", [])
2323
```
2424

2525
For more information, refer to the {@link auto.$provide#provider
26-
$provide.provider} api doc.
26+
$provide.provider} api doc.

docs/content/error/$injector/unpr.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ angular.module('myApp', [])
1414
}]);
1515
```
1616

17-
The above code will fail with `$injector:unpr` if `myService` is not defined.
17+
The above code will fail with `$injector:unpr` if `myService` is not defined.
1818

1919
Making sure each dependency is defined will fix the problem, as noted below.
2020

docs/content/error/$interpolate/noconcat.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ it hard to reason about whether some combination of concatenated values are
99
unsafe to use and could easily lead to XSS.
1010

1111
For more information about how AngularJS helps keep your app secure, refer to
12-
the {@link ng.$sce $sce} API doc.
12+
the {@link ng.$sce $sce} API doc.

docs/content/error/$parse/isecff.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ Example expression that would result in this error:
1414

1515
```
1616
<div>{{user.sendInfo.call({}, true)}}</div>
17-
```
17+
```

docs/content/error/$parse/isecfld.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ Example expressions that would result in this error:
2424
<div>{{user.__proto__.hasOwnProperty = $emit}}</div>
2525

2626
<div>{{user.__defineGetter__('name', noop)}}</div>
27-
```
27+
```

docs/content/error/$resource/badname.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
Occurs when you try to use the name `hasOwnProperty` as a name of a parameter.
77
Generally, a name cannot be `hasOwnProperty` because it is used, internally, on a object
8-
and allowing such a name would break lookups on this object.
8+
and allowing such a name would break lookups on this object.

docs/content/error/ng/areq.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
AngularJS often asserts that certain values will be present and truthy using a
77
helper function. If the assertion fails, this error is thrown. To fix this problem,
8-
make sure that the value the assertion expects is defined and truthy.
8+
make sure that the value the assertion expects is defined and truthy.

docs/content/error/ng/badname.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
Occurs when you try to use the name `hasOwnProperty` in a context where it is not allow.
77
Generally, a name cannot be `hasOwnProperty` because it is used, internally, on a object
8-
and allowing such a name would break lookups on this object.
8+
and allowing such a name would break lookups on this object.

docs/content/error/ng/btstrpd.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ You can also get this error if you accidentally load AngularJS itself more than
4949
<script src="angular.js"></script>
5050
</body>
5151
</html>
52-
```
52+
```

docs/content/error/ng/cpi.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ This error occurs when attempting to copy an object to itself. Calling {@link
77
api/angular.copy angular.copy} with a `destination` object deletes
88
all of the elements or properties on `destination` before copying to it. Copying
99
an object to itself is not supported. Make sure to check your calls to
10-
`angular.copy` and avoid copying objects or arrays to themselves.
10+
`angular.copy` and avoid copying objects or arrays to themselves.

docs/content/error/ng/cpws.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ Copying Window or Scope instances is not supported because of cyclical and self
77
references. Avoid copying windows and scopes, as well as any other cyclical or
88
self-referential structures. Note that trying to deep copy an object containing
99
cyclical references that is neither a window nor a scope will cause infinite
10-
recursion and a stack overflow.
10+
recursion and a stack overflow.

docs/content/guide/compiler.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ This should help give you an idea of what Angular does internally.
198198

199199
// Step 3: link the compiled template with the scope.
200200
var element = linkFn(scope);
201-
201+
202202
// Step 4: Append to DOM (optional)
203203
parent.appendChild(element);
204204
```

docs/content/misc/downloading.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ after the core `angular.js` file:
8383
our docs, or even more importantly, view the docs offline.
8484

8585
* __`i18n`__ - this directory contains locale specific `ngLocale` angular modules to override the defaults
86-
defined in the `ng` module.
86+
defined in the `ng` module.

docs/content/tutorial/step_02.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,4 +255,4 @@ to the app.
255255

256256
[jasmine]: http://jasmine.github.io/
257257
[jasmine-docs]: http://jasmine.github.io/1.3/introduction.html
258-
[karma]: http://karma-runner.github.io/
258+
[karma]: http://karma-runner.github.io/

docs/content/tutorial/step_07.ngdoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ AngularJS, so it's important for you to understand a thing or two about how it w
8080

8181
When the application bootstraps, Angular creates an injector that will be used to find and inject all
8282
of the services that are required by your app. The injector itself doesn't know anything about what
83-
`$http` or `$route` services do, in fact it doesn't even know about the existence of these services
84-
unless it is configured with proper module definitions.
83+
`$http` or `$route` services do, in fact it doesn't even know about the existence of these services
84+
unless it is configured with proper module definitions.
8585

86-
The injector only carries out the following steps :
86+
The injector only carries out the following steps :
8787

8888
* load the module definition(s) that you specify in your app
8989
* register all Providers defined in these module definitions
90-
* when asked to do so, inject a specified function and any necessary dependencies (services) that
90+
* when asked to do so, inject a specified function and any necessary dependencies (services) that
9191
it lazily instantiates via their Providers.
9292

9393
Providers are objects that provide (create) instances of services and expose configuration APIs

src/ngResource/resource.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -290,20 +290,20 @@ function shallowClearAndCopy(src, dst) {
290290
* # Creating a custom 'PUT' request
291291
* In this example we create a custom method on our resource to make a PUT request
292292
* ```js
293-
* var app = angular.module('app', ['ngResource', 'ngRoute']);
293+
* var app = angular.module('app', ['ngResource', 'ngRoute']);
294294
*
295-
* // Some APIs expect a PUT request in the format URL/object/ID
296-
* // Here we are creating an 'update' method
297-
* app.factory('Notes', ['$resource', function($resource) {
295+
* // Some APIs expect a PUT request in the format URL/object/ID
296+
* // Here we are creating an 'update' method
297+
* app.factory('Notes', ['$resource', function($resource) {
298298
* return $resource('/notes/:id', null,
299299
* {
300300
* 'update': { method:'PUT' }
301301
* });
302-
* }]);
302+
* }]);
303303
*
304-
* // In our controller we get the ID from the URL using ngRoute and $routeParams
305-
* // We pass in $routeParams and our Notes factory along with $scope
306-
* app.controller('NotesCtrl', ['$scope', '$routeParams', 'Notes',
304+
* // In our controller we get the ID from the URL using ngRoute and $routeParams
305+
* // We pass in $routeParams and our Notes factory along with $scope
306+
* app.controller('NotesCtrl', ['$scope', '$routeParams', 'Notes',
307307
function($scope, $routeParams, Notes) {
308308
* // First get a note object from the factory
309309
* var note = Notes.get({ id:$routeParams.id });
@@ -313,7 +313,7 @@ function shallowClearAndCopy(src, dst) {
313313
* Notes.update({ id:$id }, note);
314314
*
315315
* // This will PUT /notes/ID with the note object in the request payload
316-
* }]);
316+
* }]);
317317
* ```
318318
*/
319319
angular.module('ngResource', ['ng']).

test/ng/filter/filtersSpec.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,16 @@ describe('filters', function() {
7373
expect(num).toBe('123.112');
7474
});
7575

76-
it('should format the same with string as well as numeric fractionSize', function(){
77-
var num = formatNumber(123.1, pattern, ',', '.', "0");
76+
it('should format the same with string as well as numeric fractionSize', function(){
77+
var num = formatNumber(123.1, pattern, ',', '.', "0");
7878
expect(num).toBe('123');
79-
num = formatNumber(123.1, pattern, ',', '.', 0);
79+
num = formatNumber(123.1, pattern, ',', '.', 0);
8080
expect(num).toBe('123');
81-
num = formatNumber(123.1, pattern, ',', '.', "3");
81+
num = formatNumber(123.1, pattern, ',', '.', "3");
8282
expect(num).toBe('123.100');
83-
num = formatNumber(123.1, pattern, ',', '.', 3);
83+
num = formatNumber(123.1, pattern, ',', '.', 3);
8484
expect(num).toBe('123.100');
85-
});
85+
});
8686
});
8787

8888
describe('currency', function() {

test/ngScenario/e2e/Runner.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
22
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
33
<head>
4-
<meta http-equiv="expires" content="0">
4+
<meta http-equiv="expires" content="0">
55
<script type="text/javascript" src="../../../src/scenario/angular-bootstrap.js" ng-autotest></script>
66
<script type="text/javascript" src="widgets-scenario.js"></script>
77
</head>

0 commit comments

Comments
 (0)