purebasic icon indicating copy to clipboard operation
purebasic copied to clipboard

purebasic IDE “Format indentation” bug

Open diskay opened this issue 3 years ago • 1 comments

https://www.purebasic.fr/english/viewtopic.php?f=42&t=74612

An attempt to use "Format indentation" on the following code produced strange results: Code: a(0, 1, "你好世界!", 100) Debug 1

It looks like this

Code: a(0, 1, "你好世界!", 100) (some space)Debug 1

I've found the problem

It is located in:

https://github.com/fantaisie-software/purebasic/blob/6635e3951f08a088a3d3f3bb0cac0ae29bc778e3/PureBasicIDE/SourceParser.pb#L421

PureBasicIDE/ SourceParser.pb

line 421-430,433

Delete these lines and it's OK :D

diskay avatar Nov 19 '20 07:11 diskay

@diskay, some time has passed since you've opened this Issue, but no PR has followed.

I'm not sure I understand, you mentioned having spotted both the problem and the solution, so it would reasonable to expect that you create a pull request to fix the bug, Since the problem you describe manifests with the Chinese language (I'm guessing it's Chinese, but I could be wrong), it requires a Chinese native speaker to implement the fix and test that it works as expected.

tajmone avatar Feb 24 '21 14:02 tajmone