Skip to content
This repository was archived by the owner on Mar 11, 2024. It is now read-only.

Long model names creates unwanted line breaks in Blade code in generated views #422

Open
manfredekblad opened this issue May 3, 2023 · 1 comment

Comments

@manfredekblad
Copy link

Describe the bug
When having a long model name, such as "EmailConfiguration", the Blade code will have unwanted line breaks in the generated view, which produces a "Malformed @forelse statement." when viewing the page.

To Reproduce
Steps to reproduce the behavior:

  1. Create a model named "EmailConfiguration"
  2. Create a CRUD application for the EmailConfiguration
  3. Generate the code and run the application
  4. Navigate to the EmailConfiguration page on the application
  5. See error "Malformed @forelse statement."
  6. Open the source file for the view, there are line breaks in the Blade syntax:
@forelse($emailConfigurations as
$emailConfiguration)

Expected behavior
No line breaks in the Blade code.

Screenshots
Vemto Template:
image

Vemto Compiled (preview in Vemto):
image

Actual output:
image

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version: Vemto 1.3.2
@TiagoSilvaPereira
Copy link
Owner

Hi @manfredekblad thank you for reporting, I'll check this ASAP

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants