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

the number 0L shouldn't have a space inserted between the "0" and the "L" #138

Open
meadowsys opened this issue Jun 19, 2020 · 1 comment
Labels

Comments

@meadowsys
Copy link

meadowsys commented Jun 19, 2020

Unibeautify Playground link

Language: Java

Config:

{
  "Java": {
    "indent_comments": true,
    "end_with_comma": false,
    "indent_style": "space",
    "indent_size": 2,
    "break_chained_methods": false,
    "max_preserve_newlines": 10,
    "quotes": "none",
    "space_after_anon_function": false,
    "multiline_ternary": "never",
    "align_assignments": false,
    "wrap_line_length": 80,
    "beautifiers": [
      "Pretty Diff"
    ]
  }
}

Input:

public class AA {
  public static void main(String[] args) {
    System.out.println(0L);
  }
}

Output:

public class AA {
  public static void main(String[] args) {
    System.out.println(0 L);
  }
}

Expected behavior:
the long 0L shouldn't be touched by the code beautifier, but instead, there is a forbidden space inserted between the "0" and the "L". Examples: the playground linked above, as well as a commit in my project thing (its a really small project i know), as well as the Travis CI build that failed for that commit

The config file used in my project is slightly different, here it is.

Other longs are also affected (like here).

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.62. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the bug label Jun 19, 2020
@meadowsys meadowsys changed the title 0L shouldn't have a space inserted between them the number 0L shouldn't have a space inserted between the "0" and the "L" Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant