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

Unwanted line breaks between consecutive inline elements #83

Open
UnknownPlatypus opened this issue Nov 24, 2024 · 1 comment
Open

Unwanted line breaks between consecutive inline elements #83

UnknownPlatypus opened this issue Nov 24, 2024 · 1 comment

Comments

@UnknownPlatypus
Copy link
Contributor

Hi !

It seems like multiple inline elements on the same line force wrapping between each one of them.

-<p>Lorem <b>ipsum</b> <b>ipsum</b> <b>ipsum</b> dolor sit amet, consectetur adipiscing elit. Fusce cursus massa vel augue </p>
+<p>
+  Lorem <b>ipsum</b>
+  <b>ipsum</b>
+  <b>ipsum</b> dolor sit amet, consectetur adipiscing elit. Fusce cursus massa
+  vel augue
+</p>

I would expect for them to stay on the same line until the line_width is exceeded ?
Something like that:

-<p>Lorem <b>ipsum</b> <b>ipsum</b> <b>ipsum</b> dolor sit amet, consectetur adipiscing elit. Fusce cursus massa vel augue </p>
+<p>
+  Lorem <b>ipsum</b> <b>ipsum</b> <b>ipsum</b> dolor sit amet, consectetur
+  adipiscing elit. Fusce cursus massa vel augue
+</p>

Is this expected behavior ?

Thank again for this tool, and let me know if you need more details

@g-plane
Copy link
Owner

g-plane commented Nov 25, 2024

This isn't expected, and the latter example you gave should be preferred. But, for the example below, they shouldn't stay on the same line:

<p>
  <div>a</div>
  <div>b</div>
</p>

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