Skip to content

Commit f1b9338

Browse files
committed
remove spurious nbsp in generate-preamble mode (not at learnlatex)
1 parent 972728a commit f1b9338

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

assets/scripts/runlatex.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ function llexamples() {
163163
p[i].parentNode.insertBefore(f, p[i].nextSibling);
164164
}
165165
}
166+
if(runlatex.adddefaultpreamble) {
167+
pretext=pretext.replace(/^[ \t\u00A0]+$/gm,'');
168+
}
166169
p[i].textContent=pretext.replace(/\s+$/,'');
167170
p[i].style.height="1em"; // force redisplay in Opera zoom
168171
ace.config.set('basePath', 'https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12') ;

0 commit comments

Comments
 (0)