Election results in the London Borough of Sutton.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
333 B

  1. new_ward = true
  2. ARGF.each do |line|
  3. line.chomp!
  4. if line == ''
  5. new_ward = true
  6. next
  7. end
  8. if new_ward
  9. @ward_name = line[0..28].strip
  10. new_ward = false
  11. end
  12. data = []
  13. data << @ward_name
  14. data << line[29..-1].split(/\s{2,}/)
  15. puts data.join "\t"
  16. end