Skip to content

[Improvement]: Improve/fix formatting for natural expressions #44063

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

Open
MaryamZi opened this issue Apr 25, 2025 · 0 comments
Open

[Improvement]: Improve/fix formatting for natural expressions #44063

MaryamZi opened this issue Apr 25, 2025 · 0 comments

Comments

@MaryamZi
Copy link
Member

Description

$title. On 2201.13.0-m1

Describe your problem(s)

import ballerina/io;

public function main() {
    string str = "software engineers";
    string|error s = natural { Tell me a joke about ${str} };
    io:println(s);
}

becomes

import ballerina/io;

public function main() {
    string str = "software engineers";
    string|error s = natural {
Tell me a joke about ${str} 
};
    io:println(s);
}

Describe your solution(s)

No response

Related area

-> Formatter

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants