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

Spaces between quote and value in CFML attributes in real time product causing code errors - needs to not happen! #197

Open
rlsmithCSI opened this issue Mar 5, 2024 · 0 comments

Comments

@rlsmithCSI
Copy link

Unibeautify Playground link

Language: ColdFusion

Config:

{
  "ColdFusion": {
    "indent_comments": true,
    "indent_style": "tab",
    "indent_size": 1,
    "max_preserve_newlines": 1,
    "quotes": "none",
    "wrap_line_length": 60,
    "force_indentation": false,
    "beautifiers": [
      "Pretty Diff"
    ]
  }
}

Input:

	<cfform name="frm_coupon_list" method="post" action="/admin/coupons/">
      <table width="100%" cellspacing="1" cellpadding="2" border="0" class="hover row-border stripe cell-border" id="maintbl">
        <thead>
          <tr>
            <td>
              Name</td>
            <td>
              Code</td>
            <td>
              Expiration Date</td>
          </tr>
        </thead>
 <tbody><tr><td>hello</td><td>goodbye</td></tr></tbody></table></cfform>
   

Output: The example version is correct; that is, it is NOT putting a space in, but the actual product in VSCode does (e.g. name="frm_coupon_list" comes out as name=" frm_coupon_list ")

<cfform
	name="frm_coupon_list"
	method="post"
	action="/admin/coupons/">
	<table
		width="100%"
		cellspacing="1"
		cellpadding="2"
		border="0"
		class="hover row-border stripe cell-border"
		id="maintbl">
		<thead>
			<tr>
				<td>
					Name</td>
				<td>
					Code</td>
				<td>
					Expiration Date</td>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td>hello</td>
				<td>goodbye</td>
			</tr>
		</tbody>
	</table>
</cfform>

Expected behavior:

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