Skip to content

Commit

Permalink
Replace  
Browse files Browse the repository at this point in the history
Fix #145
  • Loading branch information
thiagotalma committed Apr 5, 2016
1 parent 989d6c5 commit ec18e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/gii.js
Expand Up @@ -78,7 +78,7 @@ yii.gii = (function ($) {
$modal.find('.modal-next').attr('href', $next.attr('href')).data('title', $next.data('title'));
}
$modalBody.html(data);
valueToCopy = $("<div/>").html(data.replace(/(<(br[^>]*)>)/ig, '\n')).text().trim() + '\n';
valueToCopy = $("<div/>").html(data.replace(/(<(br[^>]*)>)/ig, '\n').replace(/&nbsp;/ig, ' ')).text().trim() + '\n';
$modal.find('.content').css('max-height', ($(window).height() - 200) + 'px');
};

Expand Down

0 comments on commit ec18e1f

Please sign in to comment.