Skip to content

Commit 2eed29d

Browse files
committed
Removed trailing whitespace
1 parent fc8abeb commit 2eed29d

File tree

11 files changed

+23
-23
lines changed

11 files changed

+23
-23
lines changed

lib/MetaCPAN/Web/Controller/Author.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ BEGIN { extends 'MetaCPAN::Web::Controller' }
77

88
sub index : Path : Args(1) {
99
my ( $self, $c, $id ) = @_;
10-
10+
1111
# force consistent casing in URLs
1212
if ( $id ne uc( $id ) ) {
1313
$c->res->redirect( '/author/' . uc( $id ), 301 );
1414
$c->detach;
1515
}
16-
16+
1717
my $author_cv = $c->model('API::Author')->get($id);
1818
# this should probably be refactored into the model?? why is it here
1919
my $releases_cv = $c->model('API::Release')->request(

lib/MetaCPAN/Web/Controller/Search.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ sub index : Path {
2626
}
2727
else {
2828
my $user = $c->user_exists ? $c->user->id : undef;
29-
29+
3030
$query =~ s{author:([a-zA-Z]*)}{author:\U$1\E};
3131
$query =~ s/dist(ribution)?:(\w+)/file.distribution:$2/;
32-
32+
3333
my $results
3434
= $query =~ /distribution:/
3535
? $model->search_distribution( $query, $from, $user )

lib/MetaCPAN/Web/Model/API/File.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sub source {
1414

1515
sub dir {
1616
my ( $self, $author, $release, @path ) = @_;
17-
17+
1818
$self->request(
1919
'/file',
2020
{ query => {

root/account/login.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
<% ELSIF req.params.error %>
66
<p>There has been an error with your request: <% req.params.error %></p>
77
<% END %>
8-
8+
99
</table>
1010
</div>

root/account/profile.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@
5454
</div>
5555
<label><span>Last update</span><strong class="relatize"><% author.updated.dt_http %></strong></label>
5656
</fieldset>
57-
57+
5858
<fieldset><legend>Location</legend>
5959
<label><span>Country</span><input type="text" name="country" value="<% author.country %>" /> (two letter ISO code)</label>
6060
<label><span>Region</span><input type="text" name="region" value="<% author.region %>" /></label>
6161
<label><span>City</span><input type="text" name="city" value="<% author.city %>" /></label>
6262
<label><span>Latitude</span><input type="text" name="latitude" value="<% author.location.0 %>" /> <a href="" onclick="return fillLocation()">locate me</a><img src="/static/icons/busy.gif" style="display: none; float: right" id="busy" /></label>
6363
<label><span>Longitude</span><input type="text" name="longitude" value="<% author.location.1 %>" /></label>
6464
</fieldset>
65-
65+
6666
<fieldset><legend>Profiles</legend>
6767
<label><span class="account-author-profiles"></span><select onchange="return addProfile(this)">
6868
<option>Add Profile</option>
@@ -90,12 +90,12 @@
9090
<% END -%>
9191
</div>
9292
</fieldset>
93-
93+
9494
<fieldset><legend>Extra</legend>
9595
<p>Any additional data you want to add to your profiles goes in here (JSON format).</p><br />
9696
<textarea name="extra" cols="60" rows="10" onkeyup="validateJSON(this)"><% author.extra.pretty_json %></textarea><div class="valid">invalid</div>
9797
</fieldset>
98-
<br />
98+
<br />
9999
<div class="ds"><input type="submit" value="Save Profile" class="g-button" /></div>
100100
</form>
101101
<% END -%>
@@ -123,7 +123,7 @@
123123
+ '<a href="" class="check" onclick="return removeDiv(this)">remove</a> ';
124124
}
125125
html += '</label></div>';
126-
126+
127127
container.append(html);
128128
var add = container.children().last();
129129
add.slideDown();
@@ -162,7 +162,7 @@
162162
var container = input.parent().parent();
163163
container.append('<label style="display: none"><span></span><input type="text" name="' + id + '" />'
164164
+ ' <a href="" onclick="return removeLabel(this)">remove</a></label>');
165-
165+
166166
var add = container.children().last();
167167
add.slideDown();
168168
return false;

root/activity.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" standalone="no"?>
2-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
2+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
33
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
44

55
<svg width="170" height="22" version="1.1"

root/browse.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<ul>
2020
<li><% count = files.grep(->{this.directory == 'true'}).size; count %> folder<% count != 1 ? "s" : "" %></li>
2121
<li><% count = files.grep(->{this.directory == 'false'}).size; count %> file<% count != 1 ? "s" : "" %></li>
22-
22+
2323
</ul>
2424
</div>
2525

@@ -37,7 +37,7 @@
3737
<% i = 0; FOREACH file IN files %>
3838
<tr<% i = i + 1; IF i % 2 %> class="odd"<% END %>>
3939
<td class="name"><strong sort="<% file.directory == 'true' ? "!" _ file.name : file.name %>"><a href="/source/<% [author, release, file.path].join("/") %>" class="<%
40-
file.directory == 'true' ? 'silk-folder'
40+
file.directory == 'true' ? 'silk-folder'
4141
: file.mime.match("perl") ? 'silk-page-white-code'
4242
: file.mime.match("x-c") ? 'silk-page-white-c'
4343
: 'silk-page-white'

root/mirrors.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<div id="map" style="width: 600px; height: 200px"></div>
4242
<br>
4343
<div>
44-
<%
44+
<%
4545
dots = [];
4646
FOREACH mirror IN mirrors;
4747
dots.push(mirror.location);
@@ -77,7 +77,7 @@
7777
OpenLayers.Feature.Vector.style["default"]));
7878
var markers = new OpenLayers.Layer.Vector("name", {styleMap: styleMap});
7979
map.addLayer(markers);
80-
80+
8181
for(var i = 0; i < dots.length; i++) {
8282
var lonLat = new OpenLayers.LonLat( dots[i][0], dots[i][1] )
8383
.transform(

root/release.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<ul>
99
<li><strong class="relatize"><% release.date.dt_http %></strong></li>
1010
<li><a href="<% release.download_url.replace('cpan\.cpantesters\.org', 'cpan.metacpan.org') %>">Download</a> (<% release.stat.size | format_bytes %>)</li>
11-
<% IF changes %>
11+
<% IF changes %>
1212
<li><a href="/source/<% release.author; '/'; release.name; '/'; changes %>"><% changes %></a></li>
1313
<% END %>
1414
<li><a href="/source/<% release.author %>/<% release.name %>/">Browse</a> (<a href="<% api %>/source/<% release.author %>/<% release.name %>/">raw</a>)</li>

root/wrapper.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<input type="text" name="q" size="41" id="search-input" value="<% req.param('q').join(' ') or req.parameters.lucky %>"><input type="submit" value="Search" class="g-button" />
6666
</div>
6767
<br><small style="font-size: 0.8em"><% IF total.defined; IF page > 1 %>Page <% page %> of <% END; IF total == 999; 'more than '; END; total | format_number %> result<% IF total != 1; 's'; END %> (<% took / 1000 %> seconds)<% ELSE; "&nbsp;" | none; END %></small></div>
68-
68+
6969
<div style="float: left; width: 168px"></div>
7070
</div>
7171
</form>
@@ -79,15 +79,15 @@
7979
<tr>
8080
<td style="width: 200px; float: left"></td>
8181
<td style="text-align: center">
82-
<a href="https://github.com/CPAN-API/cpan-api/wiki/Beta-API-docs">API</a> &nbsp; &nbsp; &nbsp; &nbsp;
82+
<a href="https://github.com/CPAN-API/cpan-api/wiki/Beta-API-docs">API</a> &nbsp; &nbsp; &nbsp; &nbsp;
8383
<a href="/about/resources">About MetaCPAN</a> &nbsp; &nbsp; &nbsp; &nbsp;
8484
<a href="https://github.com/CPAN-API/metacpan-web">Fork metacpan.org</a>
8585
</td>
8686
<td style="width: 200px; float: right; text-align: right; font-size: 0.7em; color: #999; position: relative">
8787
Hosting generously<br>sponsored by <a href="http://speedchilli.com">speedchilli</a><br><a href="http://speedchilli.com"><img src="/static/images/speedchilli.png" width=150 height=32></a></td>
8888
</tr>
8989
</table>
90-
<!-- Piwik -->
90+
<!-- Piwik -->
9191
<noscript><p><img src="https://metacpan.org/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
9292
<!-- End Piwik Tracking Code -->
9393
</body>

0 commit comments

Comments
 (0)