Skip to content

Commit

Permalink
Fixed issue with converting tabs to spaces causing space characters (…
Browse files Browse the repository at this point in the history
…\s) to be shown in syntax highlighter.
  • Loading branch information
rainner committed Nov 15, 2016
1 parent e211966 commit d1c92ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/syntaxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@
.replace( /&/g, '&' )
.replace( /&lt;/g, '<' )
.replace( /&gt;/g, '>' )
.replace( /&nbsp;|\u00a0/gi, '\s' )
.replace( /\t/g, "\s\s\s\s" )
.replace( /&nbsp;|\u00a0/gi, ' ' )
.replace( /\t/g, ' ' )
.replace( /[\r]+/g, '' )
.replace( /^[\n]+/, '' )
.replace( /[\s\t\n\uFEFF\xA0]+$/, '' );
Expand Down

0 comments on commit d1c92ba

Please sign in to comment.