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

[csharp] Fix indentation for MapField with nested Messages #15836

Closed
wants to merge 1 commit into from

Conversation

q42jaap
Copy link
Contributor

@q42jaap q42jaap commented Feb 14, 2024

WriteDictionary does not pass indentationLevel downwards to WriteValue. The existing test for MapField only tests MapField<string, string>, which isn't affected by the issue.
Tests are added for this issue.

Note: I also added WriteValueWithIndentation_MapWithEmptyNested to ensure this change would break things, but I doubt if it's necessary. Let me know whether to remove it.

@q42jaap q42jaap requested a review from a team as a code owner February 14, 2024 09:55
@q42jaap q42jaap requested review from jskeet and removed request for a team February 14, 2024 09:55
@jskeet
Copy link
Contributor

jskeet commented Feb 14, 2024

Thanks, this looks good to me. @mkruskal-google please could you approve after the tests have completed, to kick off the import process?

@jskeet jskeet added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Feb 14, 2024
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Feb 14, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants