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

Numbers in exponential format beginning with . are being wrongly formatted #2

Open
tadeu opened this issue Jun 21, 2018 · 0 comments
Open

Comments

@tadeu
Copy link

tadeu commented Jun 21, 2018

  • PyDev Formatter version: 0.1.5
  • Python version: 3.6
  • Operating System: Windows 10

Description

The formatter was wrongly adding space to some numbers. I've made a small "case" file, these are the results of the formatter:

-a = [.100000E+05]
-a = [.100000e+05]
+a = [.100000E + 05]
+a = [.100000e + 05]
 a = [.100000E05]
 a = [.100000e05]
 a = [0.100000E+05]
 a = [0.100000e+05]
 a = [0.100000E05]
 a = [0.100000e05]
 
-a = [.100000E-05]
-a = [.100000e-05]
+a = [.100000E - 05]
+a = [.100000e - 05]
 a = [0.100000E-05]
 a = [0.100000e-05]
 
-a = [.100000E-05]
-a = [.100000e-05]
+a = [.100000E - 05]
+a = [.100000e - 05]
 a = [0.100000E-05]
 a = [0.100000e-05]
 
 a = [1000.E+05]
 a = [1000.e+05]
 a = [1000.E05]
 a = [1000.e05]
 a = [1000.E-05]
 a = [1000.e-05]
 
 a = [1_000.E+05]
 a = [1_000.e+05]
 a = [1_000.E05]
 a = [1_000.e05]
 a = [1_000.E-05]
 a = [1_000.e-05]
 
-a = [.100_000E+05]
-a = [.100_000e+05]
+a = [.100_000E + 05]
+a = [.100_000e + 05]
 a = [.100_000E05]
 a = [.100_000e05]
 a = [0.100_000E+05]
 a = [0.100_000e+05]
 a = [0.100_000E05]
 a = [0.100_000e05]

Original case file:

a = [.100000E+05]
a = [.100000e+05]
a = [.100000E05]
a = [.100000e05]
a = [0.100000E+05]
a = [0.100000e+05]
a = [0.100000E05]
a = [0.100000e05]

a = [.100000E-05]
a = [.100000e-05]
a = [0.100000E-05]
a = [0.100000e-05]

a = [.100000E-05]
a = [.100000e-05]
a = [0.100000E-05]
a = [0.100000e-05]

a = [1000.E+05]
a = [1000.e+05]
a = [1000.E05]
a = [1000.e05]
a = [1000.E-05]
a = [1000.e-05]

a = [1_000.E+05]
a = [1_000.e+05]
a = [1_000.E05]
a = [1_000.e05]
a = [1_000.E-05]
a = [1_000.e-05]

a = [.100_000E+05]
a = [.100_000e+05]
a = [.100_000E05]
a = [.100_000e05]
a = [0.100_000E+05]
a = [0.100_000e+05]
a = [0.100_000E05]
a = [0.100_000e05]
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