Rails 2.1 RC1
Updated Instiki to Rails 2.1 RC1 (aka 2.0.991).
This commit is contained in:
parent
14afed5893
commit
5292899c9a
971 changed files with 46318 additions and 17450 deletions
|
@ -45,11 +45,14 @@ module ActiveSupport
|
|||
if marks.empty?
|
||||
json.gsub(/\\\//, '/')
|
||||
else
|
||||
# FIXME: multiple slow enumerations
|
||||
output = ([0] + marks.map(&:succ)).
|
||||
zip(marks + [json.length]).
|
||||
map { |left, right| json[left..right] }.
|
||||
join(" ")
|
||||
left_pos = [-1].push(*marks)
|
||||
right_pos = marks << json.length
|
||||
output = []
|
||||
left_pos.each_with_index do |left, i|
|
||||
output << json[left.succ..right_pos[i]]
|
||||
end
|
||||
output = output * " "
|
||||
|
||||
times.each { |i| output[i-1] = ' ' }
|
||||
output.gsub!(/\\\//, '/')
|
||||
output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue