Repository navigation
Fix xml Blocks - #9852
Fix xml Blocks#9852
Conversation
Contributes to dotnet#8125
|
This PR fixes all xml syntax blocks. Style rules applied:
|
rpetrusha
left a comment
There was a problem hiding this comment.
Thank you so much for addressing #8125 and fixing the broken XML syntax blocks. Your changes look really good, except that the two spaces at the end of a line in a fenced code block are not necessary. If it is easy for you to revert those changes, we'd appreciate it. If not, we'll merge your PR as is.
|
@rpetrusha I think this is all :-) |
|
There are more broken XML code blocks in #9744 :-) You could also fix them if you are interested. |
|
Sure, I'll take a look. :-) |
|
Would you like to share your codes used to fix these code blocks? I was about to write them. |
|
@NextTurn See https://gist.github.com/msschl/fdfc2b5f4e1ab5ae9d4429849d2bd894 I used this to remove all the spaces at the end of a line inside a xml code block. All other XML formatting was done by hand. But I wanted to start working on a littel tool to format the xml code blocks inside a markdown file :) |
|
Thanks for your hard work! I am going to develop such a tool after fixing that issue so that it won't be blocked by the exceptions. |
|
As for the spaces, they are everywhere so you don't need to be limited to code blocks. See #9755 |
|
Oh ok, thanks that's good to know. |
|
Although in some cases, @NextTurn, trailing spaces are significant. That's particularly the case in See Also sections in the conceptual documentation,, where 2+ spaces cause a line break; otherwise, multiple links appear on a single line unless they are bulleted list items. They also can be important in lists and list continuations. |
|
Thank you so much, @msschl, both for your original PR and for addressing my comments so quickly. I'll merge your PR now. |
Summary
Contributes to #8125
Fixes #8125