This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new d7db00f tabs => spaces
d7db00f is described below
commit d7db00f15b0d311e92cd58e4876e86bc2c0a2986
Author: Sam Ruby
AuthorDate: Mon Jun 11 09:58:45 2018 -0400
tabs => spaces
---
www/board/agenda/views/actions/batch.json.rb | 16 -
www/board/agenda/views/actions/commit.json.rb | 6 ++--
www/board/agenda/views/buttons/offline.js.rb | 14
www/board/agenda/views/buttons/post.js.rb | 18 +-
www/board/agenda/views/models/agenda.js.rb| 50 +--
www/board/agenda/views/models/pagecache.js.rb | 2 +-
www/board/agenda/views/models/pending.js.rb | 40 ++---
www/board/agenda/views/pages/fy23.js.rb | 8 ++---
www/board/agenda/views/sw.js.rb | 2 +-
9 files changed, 78 insertions(+), 78 deletions(-)
diff --git a/www/board/agenda/views/actions/batch.json.rb
b/www/board/agenda/views/actions/batch.json.rb
index 718b374..b5cfca2 100644
--- a/www/board/agenda/views/actions/batch.json.rb
+++ b/www/board/agenda/views/actions/batch.json.rb
@@ -30,15 +30,15 @@ Pending.update(env.user, @agenda) do |pending|
if @pending['flag']
@pending['flag'].each do |attach, request|
if request == 'flag'
- unflagged.delete attach
- flagged << attach unless flagged.include? attach or
- agenda.find {|item| item[:attach] == attach and
- Array(item['flagged_by']).include? @initials}
+unflagged.delete attach
+flagged << attach unless flagged.include? attach or
+ agenda.find {|item| item[:attach] == attach and
+Array(item['flagged_by']).include? @initials}
else
- flagged.delete attach
- unflagged << attach unless unflagged.include? attach or
- not agenda.find {|item| item[:attach] == attach and
- Array(item['flagged_by']).include? @initials}
+flagged.delete attach
+unflagged << attach unless unflagged.include? attach or
+ not agenda.find {|item| item[:attach] == attach and
+Array(item['flagged_by']).include? @initials}
end
end
end
diff --git a/www/board/agenda/views/actions/commit.json.rb
b/www/board/agenda/views/actions/commit.json.rb
index 58355b1..c82431e 100644
--- a/www/board/agenda/views/actions/commit.json.rb
+++ b/www/board/agenda/views/actions/commit.json.rb
@@ -164,7 +164,7 @@ Agenda.update(agenda_file, @message) do |agenda|
operations.each do |attachment|
if comments.include? attachment
office = agenda[
- /^Attachment #{attachment}: Report from the (.*?) \[/, 1]
+/^Attachment #{attachment}: Report from the (.*?) \[/, 1]
office.sub! /^VP of /, ''
office.sub! /^Apache /, ''
@@ -174,8 +174,8 @@ Agenda.update(agenda_file, @message) do |agenda|
text[/ *(#{' '*(initials.length+2)})/,1] = "#{initials}: "
agenda.sub!(patterns['4']) do |match|
- match[/\n()\s{9}\]/,1] = "#{text}\n"
- match
+match[/\n()\s{9}\]/,1] = "#{text}\n"
+match
end
end
end
diff --git a/www/board/agenda/views/buttons/offline.js.rb
b/www/board/agenda/views/buttons/offline.js.rb
index e6415ca..1bdc097 100644
--- a/www/board/agenda/views/buttons/offline.js.rb
+++ b/www/board/agenda/views/buttons/offline.js.rb
@@ -19,13 +19,13 @@ class Offline < Vue
@disabled = true
Pending.dbget do |pending|
- # construct arguments to fetch
- args = {
- method: 'post',
- credentials: 'include',
- headers: {'Content-Type' => 'application/json'},
- body: {agenda: Agenda.file, pending: pending}.inspect
- }
+# construct arguments to fetch
+args = {
+ method: 'post',
+ credentials: 'include',
+ headers: {'Content-Type' => 'application/json'},
+ body: {agenda: Agenda.file, pending: pending}.inspect
+}
fetch('../json/batch', args).then {|response|
if response.ok
diff --git a/www/board/agenda/views/buttons/post.js.rb
b/www/board/agenda/views/buttons/post.js.rb
index 6c83403..33f467a 100644
--- a/www/board/agenda/views/buttons/post.js.rb
+++ b/www/board/agenda/views/buttons/post.js.rb
@@ -472,15 +472,15 @@ class Post < Vue
else
# remove indentation
unless report =~ /^\S/
- regex = RegExp.new('^( +)', 'gm')
- indents = []
- while (result = regex.exec(report))
- indents.push result[1].length
- end
- unless indents.empty?
- indent = Math.min(*indents)
- report.gsub!(RegExp.new('^' + ' ' * indent, 'gm'), '')
- end
+regex = RegExp.new('^( +)', 'gm')
+indents = []
+while (result = regex.exec(report))
+ indents.push