Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pacmak): dotnet code docs loses indentation (#3180)
Currently code examples in dotnet lose their indentation styles because we call `trim()` on each line in the code example. We want that behavior for other types of xml docs but not for code. This PR makes code a special case that calls `trimRight()` on each line, preserving the indentation on the left. The only change in the snapshots is translating this example: ```ts docs const x = 12 + 44; const s1 = "string"; const s2 = "string \nwith new newlines"; // see #2569 const s3 = `string with new lines`; ``` to this: ``` <code>int x = 12 + 44; string s1 = "string"; string s2 = @"string with new newlines"; // see #2569 string s3 = @"string with new lines";</code> ``` --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
- Loading branch information