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

Fixes indents of templates and bumps YUI dependencies #292

Merged
merged 1 commit into from
Dec 4, 2014

Conversation

okuryu
Copy link
Member

@okuryu okuryu commented Dec 2, 2014

This PR fixes #288. This problem is due to Y.Handlebars have been upgraded from v1.x to v2.0.0 since YUI 3.18.0.

Handlebars v2.0.0 have been changed the handling of indents to matches to the Mustache specs.
https://github.com/wycats/handlebars.js/blob/master/release-notes.md

Therefore, it fixes indents of templates and I'd like to make clear YUIDoc uses Handlebars v2.0.0 by depending on YUI 3.18.1 or later.

This PR fixes yui#288. This problem is due to `Y.Handlebars` have been
upgraded from v1.x to v2.0.0 since YUI 3.18.0.

Handlebars v2.0.0 have been changed the handling of indents to matches
to the Mustache specs.
https://github.com/wycats/handlebars.js/blob/master/release-notes.md

Therefore, it fixes indents of templates and I'd like to make clear
YUIDoc uses Handlebars v2.0.0 by depending on YUI 3.18.1 or later.
@yahoocla
Copy link

yahoocla commented Dec 2, 2014

CLA is valid!

@newbreedofgeek
Copy link

Looks good.. thanks @okuryu, this is a better fix than mine where I just downgraded YUI.

@juandopazo
Copy link
Member

LGTM!

@okuryu okuryu merged commit 2a3c4d8 into yui:master Dec 4, 2014
@okuryu okuryu deleted the fix288 branch December 4, 2014 12:26
@okuryu okuryu modified the milestone: v0.5.0 Dec 23, 2014
@NateEag
Copy link

NateEag commented Jan 22, 2015

Just spent a few hours debugging this issue in a custom theme, and thought I should mention that whitespace control is a slightly cleaner way to work around this issue:

{{#if methods}}
    <div id="methods">
        {{~>method}}
    </div>
{{/if}}

avoids the unwanted indentation.

@okuryu
Copy link
Member Author

okuryu commented Jan 23, 2015

@NateEag Thanks for your information, I didn't know the workaround! I just updated YUIDoc v0.5.0 release note to add the mention of this problem. Please let me know if I'm wrong.
https://github.com/yui/yuidoc/releases/tag/v0.5.0

@NateEag
Copy link

NateEag commented Jan 24, 2015

Looks good to me.

Thanks!

okuryu added a commit to okuryu/yuidoc that referenced this pull request Apr 4, 2015
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

Successfully merging this pull request may close these issues.

Extra spaces are being inserted for inline code view
5 participants