Skip to content

Commit f2b0227

Browse files
committed
pre vs pre-wrap depending on line wrapping
1 parent e228d2a commit f2b0227

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

lib/ice-coder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,8 +1208,8 @@ var ICEcoder = {
12081208
if(cM) {
12091209
// Get syntax formatted content and output to miniMapContent
12101210
top.ICEcoder.content.contentWindow.CodeMirror.runMode(cM.getValue(),cM.getOption('mode'),get('miniMapContent'));
1211-
// white-space: pre; vs pre-wrap
1212-
get('miniMapContent').innerHTML = '<div class="cm-s-'+top.ICEcoder.theme+'" style="font-family: monospace; white-space: pre-wrap; font-size: 2px; line-height: 2px">'+get('miniMapContent').innerHTML+'</div>';
1211+
// white-space: pre vs pre-wrap depending on line wrapping
1212+
get('miniMapContent').innerHTML = '<div class="cm-s-'+top.ICEcoder.theme+'" style="font-family: monospace; white-space: '+(top.ICEcoder.lineWrapping == true ? 'pre-wrap' : 'pre')+'; font-size: 2px; line-height: 2px">'+get('miniMapContent').innerHTML+'</div>';
12131213
get('miniMapContent').innerHTML = get('miniMapContent').innerHTML.replace(/\<span /g,'<span style="font-size: 2px; font-family: monospace" ');
12141214

12151215
get('miniMapContainer').innerHTML = '<div style="position: absolute; display: inline-block; top: '+

lib/ice-coder.min.js

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)