Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

extra whitespace when translating mailers

#2735

Hi,

I have a very simple setup where I need to translater a mailer view.

In the view I have:
<%= t(:body, :variable => 'something') %>

And in config/locals/lang.yml
body: "Line1\n\n
Line2\n\n
Line3"

This renders:
Line1
Line2 Line3

(one extra whitespace before Line2 and Line3)

-- M.

Reported by Marcelo Barbudas · May 28th, 2009 @ 09:04 PM

State: stale
Milestone: 3.x
Assigned to: nobody
Importance: none

Activity

  1. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  2. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to stale
    • Importance changed from to

    Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.

    October 9th, 2010 @ 04:07 AM