Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ace breaks when using tabs #25

Closed
dariusc93 opened this issue Aug 11, 2014 · 4 comments
Closed

Ace breaks when using tabs #25

dariusc93 opened this issue Aug 11, 2014 · 4 comments

Comments

@dariusc93
Copy link

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)

@yosssi
Copy link
Owner

yosssi commented Aug 11, 2014

Did you use a tab space as an indent? Ace templates' indent must be 2 spaces.

@dariusc93
Copy link
Author

Yes. normal spacing works fine, but tab space would give what ive shown above.

@yosssi
Copy link
Owner

yosssi commented Aug 11, 2014

Ace does not accept tab spaces as an indent. Please use normal spaces as an indent.

@dariusc93
Copy link
Author

Ok thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants