mirror of
https://github.com/System-End/theseus.git
synced 2026-04-19 19:55:10 +00:00
10 lines
271 B
Ruby
10 lines
271 B
Ruby
# 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
|