1
0
Fork 0
forked from campiaperti/infra

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:
Hakim El Hattab 2015-01-22 08:46:14 +01:00
parent f032df8f13
commit 44548ba357
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@
<title>reveal.js - Markdown Demo</title>
<link rel="stylesheet" href="../../css/reveal.css">
<link rel="stylesheet" href="../../css/theme/default.css" id="theme">
<link rel="stylesheet" href="../../css/theme/white.css" id="theme">
<link rel="stylesheet" href="../../lib/css/zenburn.css">
</head>

View file

@ -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;