Trim addresses when exporting them
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
3df80b96aa
commit
16d192db24
|
@ -83,8 +83,10 @@ defmodule Mobilizon.Addresses.Address do
|
|||
def representation(nil), do: nil
|
||||
|
||||
def representation(%__MODULE__{} = address) do
|
||||
"#{address.street} #{address.postal_code} #{address.locality} #{address.region} #{
|
||||
address.country
|
||||
}"
|
||||
String.trim(
|
||||
"#{address.street} #{address.postal_code} #{address.locality} #{address.region} #{
|
||||
address.country
|
||||
}"
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue