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

multiline paragraph get extra tabulation in formating #106

Open
swirly opened this issue Feb 23, 2024 · 2 comments
Open

multiline paragraph get extra tabulation in formating #106

swirly opened this issue Feb 23, 2024 · 2 comments

Comments

@swirly
Copy link

swirly commented Feb 23, 2024

What happens ?

Use a file with a paragraph on multiple lines
format it using alt+shift+F

What is expected ?

Consistent formating and same formating on multiple alt+shift+F use

What happens ?

On each alt+shift+F use, subsequent lines in paragraphe get added space

Initial code

{% block cours %}
	<div class="cours">
		<p>
		  multiple line paragraph
                  with another line

*after one format

{% block cours %}
	<div class="cours">
		<p>
                   multiple line paragraph
                              with another line

*after two format

{% block cours %}
	<div class="cours">
		<p>
		  multiple line paragraph
                                        with another line
@swirly
Copy link
Author

swirly commented Feb 23, 2024

To be more precise, it happens with other html tags, and it is made with tabs.
If paragraph content is 3 tabs from beginning of line, each subsequent call to format will push second line (and subsequent lines also) 3 tabs away from line beginning. For 4 tabs, this is 4 tabs away, and so on.

@MangoMarcus
Copy link

Same issue here, is there any update for this?

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