theseus/app/lib/snail_but_nbsp.rb
2025-05-31 23:25:41 -04:00

10 lines
271 B
Ruby
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# frozen_string_literal: true
# just like good ol' Snail except s/ /nbsp and s/-/endash on city line
#
# that way we don't linebreak in the middle of a zipcode when we render out in Prawn!
class SnailButNbsp < Snail
def city_line
super.tr(" -", " ")
end
end