Ace breaks when using tabs
Closed this issue · 4 comments
Hi,
I do not know if this is an issue but I notice when I am using tabspaces, the rendering would break while for whitespaces it doesnt. When using tabs with one of the examples, it outputs
< head></ head>< meta charset="utf-8"></ meta>< title>HTML Tags</ title>< body></ body>< header></ header>< h1>HTML Tags</ h1>< section id="main-section" class="class1 class2 class3"></ section>< id="container"></ >< class="wrapper"></ >< div>Single text line can follow the tag name.</ div>< p> </ p>< This>is a block text.</ This>< BR>tags are inserted automatically.</ BR>< a href="https://github.com">Go to GitHub</ a>< input type="checkbox" checked></ input>< footer></ footer>< script> </ script>< var>msg = 'Hello Ace';</ var>< alert(msg);></ alert(msg);>
with the html itself looking like
< head></ head>< meta charset="utf-8"></ meta>< title>HTML Tags</ title>< body></ body>< header></ header>< h1>HTML Tags</ h1>< section id="main-section" class="class1 class2 class3"></ section>< id="container"></ >< class="wrapper"></ >< div>Single text line can follow the tag name.</ div>< p></ p>< This>is a block text.</ This>< BR>tags are inserted automatically.</ BR>< a href="https://github.com">Go to GitHub</ a>< input type="checkbox" checked></ input>< footer></ footer>< script>
</ script>< var>msg = 'Hello Ace';</ var>< alert(msg);></ alert(msg);>
(Sorry for the paste like this, pastebin and hastebin been acting up for me this current hour)
Did you use a tab space as an indent? Ace templates' indent must be 2 spaces.
Yes. normal spacing works fine, but tab space would give what ive shown above.
Ace does not accept tab spaces as an indent. Please use normal spaces as an indent.
Ok thank you