mirror of
https://github.com/System-End/theseus.git
synced 2026-04-19 16:38:18 +00:00
8 lines
263 B
Ruby
8 lines
263 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
|