Code cannot be formatted normally.
Check for existing issues
- [x] Completed
Describe the bug / provide steps to reproduce it
Environment
Device Information: WebView Info: Package Name: com.google.android.webview Version: 137.0.7151.61
App Info: Name: Acode Package Name: com.foxdebug.acode Version: 1.11.4-beta Version Code: 960
Device Info: Android Version: 9 Manufacturer: vivo Model: V1809A Platform: Android Cordova Version: 14.0.1
Screen Info: Width: 540 Height: 1170 Color Depth: 24
Additional Info: Language: zh-CN User Agent: Mozilla/5.0 (Linux; Android 9; V1809A Build/PKQ1.181030.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/137.0.7151.61 Mobile Safari/537.36
If applicable, add mockups / screenshots regarding your vision
No response
If applicable, attach your Acode.log file to this issue.
Acode.log
The formatting tool has compatibility issues with HTML self-closing tags (e.g., <img src="..." />). When it encounters the "/" in such tags, it incorrectly indents the code forward. Even self-closing tags like <img> are not properly handled.
Temporary solution: Change <img src="..." /> to <img src="..."> (remove the trailing slash).
Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Acode, please let us know by commenting on this issue(i.e Bump!), and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 14 days. Thanks for your help!
Device Information: WebView Info: Package Name: com.google.android.webview Version: 138.0.7204.168
App Info: Name: Acode Package Name: com.foxdebug.acode Version: 1.11.5 Version Code: 963
Device Info: Android Version: 9 Manufacturer: vivo Model: V1809A Platform: Android Cordova Version: 13.0.0
Screen Info: Width: 540 Height: 1170 Color Depth: 24
Additional Info: Language: zh-CN User Agent: Mozilla/5.0 (Linux; Android 9; V1809A Build/PKQ1.181030.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/138.0.7204.168 Mobile Safari/537.36
Device Information: WebView Info: Package Name: com.google.android.webview Version: 138.0.7204.168
App Info: Name: Acode Package Name: com.foxdebug.acode Version: 1.11.5 Version Code: 963
Device Info: Android Version: 9 Manufacturer: vivo Model: V1809A Platform: Android Cordova Version: 13.0.0
Screen Info: Width: 540 Height: 1170 Color Depth: 24
Additional Info: Language: zh-CN User Agent: Mozilla/5.0 (Linux; Android 9; V1809A Build/PKQ1.181030.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/138.0.7204.168 Mobile Safari/537.36
Are you using default formatter ?
Device Information: WebView Info: Package Name: com.google.android.webview Version: 138.0.7204.168
App Info: Name: Acode Package Name: com.foxdebug.acode Version: 1.11.5 Version Code: 963
Device Info: Android Version: 9 Manufacturer: vivo Model: V1809A Platform: Android Cordova Version: 13.0.0
Screen Info: Width: 540 Height: 1170 Color Depth: 24
Additional Info: Language: zh-CN User Agent: Mozilla/5.0 (Linux; Android 9; V1809A Build/PKQ1.181030.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/138.0.7204.168 Mobile Safari/537.36
Are you using default formatter ?
yes.
Device Information: WebView Info: Package Name: com.google.android.webview Version: 138.0.7204.168 App Info: Name: Acode Package Name: com.foxdebug.acode Version: 1.11.5 Version Code: 963 Device Info: Android Version: 9 Manufacturer: vivo Model: V1809A Platform: Android Cordova Version: 13.0.0 Screen Info: Width: 540 Height: 1170 Color Depth: 24 Additional Info: Language: zh-CN User Agent: Mozilla/5.0 (Linux; Android 9; V1809A Build/PKQ1.181030.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/138.0.7204.168 Mobile Safari/537.36
Are you using default formatter ?
yes.
That's not for big/complex files, and also not reliable. Use Prettier or something else through plugin
Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Acode, please let us know by commenting on this issue(i.e Bump!), and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 14 days. Thanks for your help!
This issue was closed because it has been inactive for 14 days since being marked as stale.