pglombardo/PasswordPusher — pull request #26 by davidsawyer (2014-12-09 04:54:21+00:00)
Title: End of the Oregon Trail

The password show page's html was being rendered from Haml as:

```

mybadpassword

```

Firefox and IE weren't liking this when you would highlight the password to copy it and paste it somewhere else. They would copy that extra newline, that **trail**ing white space after `mybadpassword` and before `

`, and you would end up pasting `mybadpassword` if you weren't careful.

I learned [here](http://haml.info/docs/yardoc/file.REFERENCE.html#whitespace_removal__and_) that you can just strip out excess white space within a container with one simple character. Pretty slick (this is my first time using Haml).

![](https://i.ytimg.com/vi/YjPL9jwDdhA/hqdefault.jpg)