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

#if causes line after it to break when it contains an if #666

Closed
belav opened this issue May 12, 2022 · 0 comments · Fixed by #815
Closed

#if causes line after it to break when it contains an if #666

belav opened this issue May 12, 2022 · 0 comments · Fixed by #815
Labels
Milestone

Comments

@belav
Copy link
Owner

belav commented May 12, 2022

When there is this if statement inside of the #if the LogHelper line breaks even though it is not that long.
If the #if contains var x = 1; then LogHelper does not break.

public class ClassName
{
    public void MethodName()
    {
#if !NET6_0_OR_GREATER
        if (true)
        {
            return;
        }
#endif
        LogHelper
            .ForType(typeof(ErrorHandler))
            .Error(message, source);
    }
}
@belav belav added this to the 1.0.0 milestone Nov 21, 2022
@belav belav modified the milestones: 0.21.0, 0.22.0 Nov 28, 2022
@belav belav modified the milestones: 0.22.0, 0.23.0 Jan 4, 2023
belav added a commit that referenced this issue Jan 30, 2023
@belav belav closed this as completed in 6460006 Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant