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

Better support for single-line block components #53

Conversation

AndrewRadev
Copy link
Contributor

If a block component is invoked on a single line, indentation gets confused. For instance:

{{#link-to 'some.route'}}Example <span>text</span>{{/link-to}}

The next line gets indented with one shiftwidth. This commit avoids the issue by checking against another pattern.

It also renames the variables "lnum" to "plnum", and "line" to "pline" for better clarity ("previous" line).

If a block component is invoked on a single line, indentation gets
confused. For instance:

  {{#link-to 'some.route'}}Example <span>text</span>{{/link-to}}

The next line gets indented with one shiftwidth. This commit avoids the
issue by checking against another pattern.

It also renames the variables "lnum" to "plnum", and "line" to "pline"
for better clarity ("previous" line).
@AndrewRadev AndrewRadev mentioned this pull request Feb 12, 2017
@AndrewRadev AndrewRadev deleted the support-for-single-line-block-components branch July 17, 2019 07:00
@jsit
Copy link
Contributor

jsit commented Jul 17, 2019

Why did you delete this? Has this been solved in another PR?

@AndrewRadev
Copy link
Contributor Author

AndrewRadev commented Jul 17, 2019

I tried the current master, and it seems not to be a problem anymore, so I'm guessing it got fixed at some point.

@jsit
Copy link
Contributor

jsit commented Jul 17, 2019

Cool, thanks.

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.

2 participants