Skip to content

[HTML] Code formatting destroys structure #6037

Open
@grischpel

Description

@grischpel

Apache NetBeans version

Apache NetBeans 17 + 18

What happened

For example I have these line of code

<div class="col mb-4{f:if(condition: '{hoverimage}', then: ' hover-area-image-grid')}">

If i use code formatting for html, then my vue and/or typo3 fluid syntax will break and I cant find any settings to prevent this to become this:

<div class="col mb-4{
			f:if(condition: '{hoverimage}', then: ' hover-area-image-grid')
		  }">
          <f:link.typolink parameter="{obj.elem.link}">
            <div class="p-3 d-flex flex-column image-grid-item" style="background-color: {
				obj.elem.bgcolor
			  }
			  ;">
              <div class="{
				  imageGridWrapperTopSection
				}"</div>

### How to reproduce

Everytime if you use ALT + Shift + F

### Did this work correctly in an earlier version?

Apache NetBeans 12

### Operating System

Windows 11

### JDK

Microsoft Build of OpenJDK mit Hotspot 11.0.17+8 (x64)

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

_No response_

### Are you willing to submit a pull request?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    HTML[ci] enable web jobkind:bugBug report or fixneeds:triageRequires attention from one of the committers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions