You need to reconfigure your IDE to use 2 spaces instead of 4.

CommentFileSizeAuthor
#6 2621466-Indentation-is-incorrect.patch17.07 KBdarol100

Comments

aspilicious created an issue. See original summary.

darol100’s picture

@aspilicious , just curious, the correct indentation on YAML files are for best practice or it have some negative effect on the code ? I notice if I had some extra space it will break because of the wrong indentation. However, I guess if consistence it will not break.

aspilicious’s picture

Drupal has a custom YAML parser that puts the indentation on 2 spaces.
That's a drupal standard.

For twig files we also use 2 spaces and not 4.

So this is a bit different than Symfony.

darol100’s picture

Status: Active » Postponed

I'm postponing because this issue #2625254: Dynamic layouts might solve this problem. When we refactor the project using derivatives.

darol100’s picture

Status: Postponed » Needs work
Issue tags: +Novice

We decide to not work on #2625254: Dynamic layouts, this means that this issue needs some work.

darol100’s picture

Version: 8.x-1.x-dev » 8.x-3.x-dev
Status: Needs work » Needs review
StatusFileSize
new17.07 KB

Here is the first patch.

  • darol100 committed 79784f8 on 8.x-3.x
    Issue #2621466 by darol100: Indentation is incorrect
    
darol100’s picture

Status: Needs review » Closed (fixed)

@aspilicious, thank you for reporting this issue.

I have committed that patch from #6.