mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-16 19:44:13 +02:00
add global flag back in for whitespace removal, without it most of the content in example.html does not work #682
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
text = text.replace( new RegExp('\\n?\\t{' + leadingTabs + '}','g'), '\n' );
|
||||
}
|
||||
else if( leadingWs > 1 ) {
|
||||
text = text.replace( new RegExp('\\n? {' + leadingWs + '}'), '\n' );
|
||||
text = text.replace( new RegExp('\\n? {' + leadingWs + '}', 'g'), '\n' );
|
||||
}
|
||||
|
||||
return text;
|
||||
|
Reference in New Issue
Block a user