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

option "--indent-with-tabs yes" does NOT work as expected #1107

Open
el-schalo opened this issue Feb 7, 2024 · 1 comment
Open

option "--indent-with-tabs yes" does NOT work as expected #1107

el-schalo opened this issue Feb 7, 2024 · 1 comment

Comments

@el-schalo
Copy link

The option "indent-with-tabs" always inserts exactly ONE tab character (\t) before each line, instead of as many tabs as would correspond to the indentation level.

expected result:

<server xmlns="urn:jboss:domain:11.0">
	<extensions>
		<extension module="org.jboss.as.clustering.infinispan"/>
	</extensions>
	<management>
		<security-realms>
			<security-realm name="ManagementRealm">
				<authentication>
					<local default-user="$local" skip-group-loading="true"/>
					<properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
				</authentication>
				<authorization map-groups-to-roles="false">
					<properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>
				</authorization>
			</security-realm>
			<security-realm name="ApplicationRealm">
				<server-identities>
					<ssl>
						<keystore generate-self-signed-certificate-host="localhost"/>
					</ssl>

actual result:

<server xmlns="urn:jboss:domain:11.0">
	<extensions>
	<extension module="org.jboss.as.clustering.infinispan" />
	</extensions>
	<management>
	<security-realms>
	<security-realm name="ManagementRealm">
	<authentication>
	<local default-user="$local" skip-group-loading="true" />
	<properties path="mgmt-users.properties" relative-to="jboss.server.config.dir" />
	</authentication>
	<authorization map-groups-to-roles="false">
	<properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir" />
	</authorization>
	</security-realm>
	<security-realm name="ApplicationRealm">
	<server-identities>
	<ssl>
	<keystore generate-self-signed-certificate-host="localhost" />
	</ssl>
@donparakin
Copy link

donparakin commented Jul 4, 2024

@el-schalo , I ran into the same problem. By chance I stumbled across setting "indent-spaces" to 12 as well as "indent-with-tabs" to "yes" and I got closer to the desired result: indented with tabs up to 12 levels deep ... but, strangely, sometimes it adds two more tabs for the next level. At least it's better than with "indent-spaces" = 1.

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