[ANN] Text::Format 0.62

== Text::Format 0.62

  • Modified the API for hyphenators. Previously, a hyphenator could
    only be defined as an object containing a method #to_hyphenate
    with the signature:
    #to_hyphenate(word, size)
    Now, the #to_hyphenate method may be the above signature or:
    #to_hyphenate(word, size, formatter)
    So that the hyphenator may access information about the formatting
    object, if necessary. Thanks to Tim Bates for suggesting a case
    where this would be useful.
  • Fixed a bug for strings matching /\A\s*\Z/ raising a NameError.
  • Fixed a test case that failed uner 1.6.8. The following no longer
    works:
    l, m1, m2 = /((?:\S+\s+){11})(.+)/.match(line)
    This has been replaced with an explicit use of l[1] and l[2].
    Thanks to Tim Bates for finding this problem.
  • Changed installer to Phil Thomson’s install-package wrapper.

The package will be available for download within the hour.

-austin
– Austin Ziegler, austin@halostatue.ca on 2003.03.31 at 10:14:29