Skip to content

Commit

Permalink
fix diff nbsp
Browse files Browse the repository at this point in the history
  • Loading branch information
whackashoe committed Jan 11, 2017
1 parent c9db617 commit 3755a0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/diff.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@
</table>
</div>
<div id="content"><pre><code></code></pre></div>
<textarea spellcheck="false" autocomplete="off" autofocus="true" id="editor" name="code" readonly>{{ $diff or '' }}</textarea>
<textarea spellcheck="false" autocomplete="off" autofocus="true" id="editor" name="code" readonly></textarea>
@stop

@section ('scripts')
<script>
$(document).ready(function() {
@if (isset($paste->code))
$("#editor").val({{ json_encode($paste->code) }});
@endif
hljs.initHighlightingOnLoad();
$('#linenumbers td').each(function(i, v) {
var val = $(v).text();
Expand Down

0 comments on commit 3755a0d

Please sign in to comment.