[bugzilla-gnome-org-extensions] 4.4 migration: Untabify the code
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bugzilla-gnome-org-extensions] 4.4 migration: Untabify the code
- Date: Thu, 20 Nov 2014 22:27:20 +0000 (UTC)
commit 3e6f5884373cb4e8ebe003855876193d346c776d
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Tue Nov 18 14:30:22 2014 +0100
4.4 migration: Untabify the code
lib/Ops.pm | 10 ++++----
template/en/default/pages/splinter.html.tmpl | 2 +-
template/en/default/pages/splinter/help.html | 30 +++++++++++++-------------
web/splinter.js | 14 ++++++------
4 files changed, 28 insertions(+), 28 deletions(-)
---
diff --git a/lib/Ops.pm b/lib/Ops.pm
index 0408b4d..8a71ad8 100644
--- a/lib/Ops.pm
+++ b/lib/Ops.pm
@@ -54,10 +54,10 @@ sub _get_review_url {
my $bug_id = $bug->id();
if ($absolute) {
- my $urlbase = correct_urlbase();
+ my $urlbase = correct_urlbase();
- $urlbase =~ s!/$!! if $base =~ "^/";
- $base = $urlbase . $base;
+ $urlbase =~ s!/$!! if $base =~ "^/";
+ $base = $urlbase . $base;
}
if ($base =~ /\?/) {
@@ -115,11 +115,11 @@ sub _munge_create_attachment {
my ($bug, $intro_text, $attach_id, $view_link) = @_;
if (_attachment_id_is_patch ($attach_id)) {
- return ("$intro_text" .
+ return ("$intro_text" .
" View: $view_link\015\012" .
" Review: " . _get_review_url($bug, $attach_id, 1) . "\015\012");
} else {
- return ("$intro_text" .
+ return ("$intro_text" .
" --> ($view_link)");
}
}
diff --git a/template/en/default/pages/splinter.html.tmpl b/template/en/default/pages/splinter.html.tmpl
index 4fe217f..3716603 100644
--- a/template/en/default/pages/splinter.html.tmpl
+++ b/template/en/default/pages/splinter.html.tmpl
@@ -97,7 +97,7 @@
<div id="myPatchComments"></div>
<div id="buttonBox">
<span id="attachmentStatusSpan">Patch Status:
- <select id="attachmentStatus"> </select>
+ <select id="attachmentStatus"> </select>
</span>
<input id="publishButton" type="button" value="Publish" />
<input id="cancelButton" type="button" value="Cancel" />
diff --git a/template/en/default/pages/splinter/help.html b/template/en/default/pages/splinter/help.html
index a6409cc..b3650d8 100644
--- a/template/en/default/pages/splinter/help.html
+++ b/template/en/default/pages/splinter/help.html
@@ -61,25 +61,25 @@ body {
</p>
<ul>
<li>
- An overall comment. The text area on the first page allows
- you to enter your overall thoughts on the bug.
+ An overall comment. The text area on the first page allows
+ you to enter your overall thoughts on the bug.
</li>
<li>
- Detailed comments on changes within the files. To comment on a
- line in a patch, double click on it, and a text area will open
- beneath that comment. When you are done, click the Save button
- to save your comment or the Cancel button to throw your
- comment away. You can double-click on a saved comment to start
- editing it again and make further changes.
+ Detailed comments on changes within the files. To comment on a
+ line in a patch, double click on it, and a text area will open
+ beneath that comment. When you are done, click the Save button
+ to save your comment or the Cancel button to throw your
+ comment away. You can double-click on a saved comment to start
+ editing it again and make further changes.
</li>
<li>
- A change to the attachment status. (This is specific to
- Bugzilla instances that have attachment status, which is a
- non-upstream patch. It's somewhat similar to attachment flags,
- which splinter doesn't currently support displaying or
- changing.) This allows you to mark a patch as read to commit
- or needing additional work. This is done by changing the
- drop-down next to the Publish button.
+ A change to the attachment status. (This is specific to
+ Bugzilla instances that have attachment status, which is a
+ non-upstream patch. It's somewhat similar to attachment flags,
+ which splinter doesn't currently support displaying or
+ changing.) This allows you to mark a patch as read to commit
+ or needing additional work. This is done by changing the
+ drop-down next to the Publish button.
</li>
</ul>
<p>
diff --git a/web/splinter.js b/web/splinter.js
index a2418fa..40b464a 100644
--- a/web/splinter.js
+++ b/web/splinter.js
@@ -953,7 +953,7 @@ Review.Review.prototype = {
// cf. parsing in Patch.Patch._init()
parse : function(text) {
- Review.FILE_START_RE.lastIndex = 0;
+ Review.FILE_START_RE.lastIndex = 0;
var m = Review.FILE_START_RE.exec(text);
var intro;
@@ -1104,13 +1104,13 @@ Review.Review.prototype = {
str += '\n';
}
- var first = this.intro == null;
+ var first = this.intro == null;
for (var i = 0; i < this.files.length; i++) {
var file = this.files[i];
if (file.comments.length > 0) {
- if (first)
+ if (first)
first = false;
- else
+ else
str += '\n';
str += file.toString();
}
@@ -2145,13 +2145,13 @@ function addPatchFile(file) {
switch (file.status) {
case Patch.ADDED:
statusString = " (new file)";
- break;
+ break;
case Patch.REMOVED:
statusString = " (removed)";
- break;
+ break;
case Patch.CHANGED:
statusString = "";
- break;
+ break;
}
$("<div class='file-label'>"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]