Skip to content

Commit

Permalink
fix newline handling in 'copy to clipboard'
Browse files Browse the repository at this point in the history
  • Loading branch information
tjanczuk committed Jun 24, 2015
1 parent 0d82272 commit c1622b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/data.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h3>YOUR SECRET DATA</h3>
</div>
<p class="text secret-data">{{data | replace('\n', '<br />', 'g') }}</p>

<a id="copy" data-clipboard-text="{{data | replace('\n', '<br />', 'g') }}" class="action-link action-link-inverted place-top desktop-only" href="javascript:;"><span class="copy_text">Copy to clipboard</span> <span class="circle-ico"><img src="/images/ico_scale.svg" alt=""></span></a>
<a id="copy" data-clipboard-text="{{data}}" class="action-link action-link-inverted place-top desktop-only" href="javascript:;"><span class="copy_text">Copy to clipboard</span> <span class="circle-ico"><img src="/images/ico_scale.svg" alt=""></span></a>



Expand Down

0 comments on commit c1622b1

Please sign in to comment.