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

Formatter adding new lines #95

Open
rkent-sgs opened this issue Mar 15, 2023 · 2 comments
Open

Formatter adding new lines #95

rkent-sgs opened this issue Mar 15, 2023 · 2 comments

Comments

@rkent-sgs
Copy link

I can't work out why the formatter is adding blank lines when I format my file:

Before

<div class="flexibleblocks-block">
	<section class="table-block">
		<!--mixcontent-->
		<div class="container">
			<div class="row">
				<div class="col-lg-10 offset-lg-1">
					<?php include($_SERVER["DOCUMENT_ROOT"] . '/structure/flexcontent/table.php'); ?>
				</div>
			</div>
		</div>
		<!--mixcontent-->
	</section>
</div>
<!-- flexible block -->

After

<div class="flexibleblocks-block">
	<section
		class="table-block">
		<!--mixcontent-->
		<div class="container">
			<div class="row">
				<div class="col-lg-10 offset-lg-1">
					<?php include($_SERVER["DOCUMENT_ROOT"] . '/structure/flexcontent/table.php'); ?>
				</div>
			</div>
		</div>
		<!--mixcontent-->
	</section>
</div>
<!-- flexible block -->

The section class is moved to a new line and the cursor moved there, but the line isn't too long nor are other tags broken up like this. Is this a bug?

@rkent-sgs
Copy link
Author

I've noticed this doesn't happen if I remove the <!--mixcontent--> line

@rkent-sgs
Copy link
Author

Actually, this seems to happen a lot with comments
image
image

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

1 participant