Skip to content

Conversation

wagnermaciel
Copy link
Contributor

  • add logic for handling multi-line start tags in #addAttribute
  • unit tested
  • delete unused template-migration.spec.ts file

* add logic for handling multi-line start tags in #addAttribute
* unit tested
* delete unused template-migration.spec.ts file
@wagnermaciel wagnermaciel requested a review from devversion March 15, 2022 03:06
@wagnermaciel wagnermaciel added the target: feature This PR is targeted for a feature branch (outside of main and semver branches) label Mar 15, 2022

const attr = node.attributes[0];
const ctx = attr.sourceSpan.start.getContext(attr.sourceSpan.start.col + 1, 1)!;
const indentation = ctx.before;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, now we were able to also limit the getContext invocation more. I was initially thinking we'd just do something like ' '.repeat(columns + 1) but copying the original indentation makes sense (if e.g. tabs are used).

@wagnermaciel wagnermaciel merged commit 20dc088 into angular:mdc-migration Mar 15, 2022
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: feature This PR is targeted for a feature branch (outside of main and semver branches)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants