From: Gregory Brown Date: 2009-12-12T03:57:37+09:00 Subject: Re: syntax issue On Fri, Dec 11, 2009 at 4:18 AM, David Masover wrote: > So, define your own number_pages method, and if you find a good way to do it > generically, send it to the Prawn people. > > Here's what I came up with: > > def number_pages(string, position, options={}) >  page_count.times do |i| >  go_to_page(i) >  str = string.gsub("","#{i+1}").gsub("","#{page_count}") >  text str, {:at => position}.merge!(options) >  end > end Seems like a reasonable patch. We'll look into it if someone drops a ticket into github.com/sandal/prawn/issues