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

Indentation Bug with inline antlers php 🐞 #99

Open
sjclark opened this issue Sep 13, 2024 · 1 comment
Open

Indentation Bug with inline antlers php 🐞 #99

sjclark opened this issue Sep 13, 2024 · 1 comment

Comments

@sjclark
Copy link

sjclark commented Sep 13, 2024

Describe the bug
The following code inline results in infinite incrementing indentation on save

{{# Extract Youtube Video ID #}}
{{?
preg_match('/(?:youtube\.com\/.*v=|youtu\.be\/|youtube\.com\/embed\/)([^&\/\?\#]+)/', $video_link, $matches);
$videoId = $matches[1] ?? null;
?}}

Impacted Products
Which Antlers Toolbox products does this bug apply to?

  • Antlers Toolbox for VS Code

Versions and Other Plugins/Extensions
Antlers Toolbox v2.6.21

To Reproduce
Copy-paste code above into antlers.html file

Expected behavior
No indentation

Other Notes:
Adjusting to be a single line alleviates this:
{{# Extract Youtube Video ID #}}{{? preg_match('/(?:youtube\.com\/.*v=|youtu\.be\/|youtube\.com\/embed\/)([^&\/\?\#]+)/', $video_link, $matches); $videoId = $matches[1] ?? null; ?}}

😄

@andjsch
Copy link

andjsch commented Nov 26, 2024

Encountering this as well!

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