-
Notifications
You must be signed in to change notification settings - Fork 76
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
The space will be generated on both sides of the "\" or "/" in strings. #109
Comments
Hi, I cannot reproduce the issue.
The result is the same as the input in my case. Is there any special context I am missing for my tests? |
My code is edited with Matlab 2020a. Here is the test code:
After executing MBeautify.formatCurrentEditorPage() using default configuration, this code changes to :
I don't know whether this difference is due to the different versions of Matlab we use. |
Hi @DWin233 , I tried again, this time with R2020b, still no "luck" reporducing it. Are you using the default configuration or a moified one? |
Hi David, Thanks a lot for creating MBeautifier. Its a great tool and I'm using it a lot. Today I bumped into the same behavior as described in this issue. In my case I format: path = "\\host\folder\file"; which results in path = " \ \ host \ folder \ file"; I use the MBeautify.formatCurrentEditorPage() function for formatting. I use v1.3.2. Platform: Windows 10. Matlab version R2023a. As far as I'm aware I use a default configuration but if there are any settings that might impact this behavior, let me know. I would really appreciate if you would take another look at this issue and I'm happy to provide you with any further information. Best, |
Just some debugging:
So it appears this problem relates to the string environment not being recognized as such. Note the latter example contradicts #122.
|
Hello, I found a problem or bug when i use your tool to format my code. The space will be automatically generated on both sides of the "" or "/" in strings.
![QQ截图20210608100827](https://user-images.githubusercontent.com/60612754/121112076-7fa74f00-c842-11eb-8013-873c686aecde.png)
![image](https://user-images.githubusercontent.com/60612754/121112236-b8472880-c842-11eb-9b98-0e92ad12e959.png)
The text was updated successfully, but these errors were encountered: