-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-10662][DOCS] Code snippets are not properly formatted in tables #8795
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
Conversation
jaceklaskowski
commented
Sep 17, 2015
- Backticks are processed properly in Spark Properties table
- Removed unnecessary spaces
- See http://people.apache.org/~pwendell/spark-nightly/spark-master-docs/latest/running-on-yarn.html
|
This is a good fix, but this is another instance where I suspect the same issue exists in several markup files, like If you can, avoid whitespace changes like stripping or adding space at the end of lines. It just adds to the diff and makes for a tiny extra chance of merge conflicts. |
|
Is SPARK-10662 what you were thinking about? What should be the next steps? Guide me in the jira, please. |
|
Perfect, yes, just modify the title of this PR to connect them. See https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark |
dcb22b8 to
b247811
Compare
b247811 to
3129a8c
Compare
|
This much looks good other files need a similar treatment, at least the |
|
So you want me to review the other documents for no-backtick-code-formatted-in-table issue? I'm fine with it, but just need to confirm my thinking. |
|
Yeah I think that's worthwhile, as it should be fairly straightforward to locate instances of this -- look for the areas where tables are used and skim for backticks. At least, I already saw the configuration doc has this problem. |
* Backticks should be <code>...</code> inside tables * Few other minor formatting fixes * Use YARN Application Master consistently in the YARN doc
3129a8c to
4cc4087
Compare
|
It should be better now. While fixing the docs, Atom Editor fixed the additional spaces at the end (that I remember you mentioned not to fix, but since it was done automatically and they are indeed an issue, please consider merging them, too). Thanks! |
|
I think this is a good change. Yes, the whitespace changes are unfortunate, and would be better to use an editor that doesn't do that automatically. |
|
Do you want me to split the pull requests to two - one with code formatting in table and another for the unfortunate excessive spaces? And what JIRA would that be - Removing excessive spaces in docs? I can do that, but want to be clear on your intents (that I however disagree with). |
|
Your PR is making the whitespace changes which it ideally would not. I am not proposing whitespace changes; you are. It wouldn't make sense to commit the changes and then go unchange it separately. At best, a new commit here would undo this. However I get that it is minor and tedious. This is more a request for future changes. I'm not sure what you disagree with? |
|
I disagree with not accepting this change in this version with the superfluous spaces at the end of lines removed -- they're simply a garbage (and should not have been merged in the first place). They're quite likely leftovers from the time when it was decided to make the lines shorter. Can you show me a line for which the space(s) is important? If there's one, I'll fix it right away. |
|
The whitespace at the ends of the lines doesn't matter functionally either way and don't really need 'fixing'. The minor drawback to making such a change is spurious merge conflicts later, as I mentioned in #8795 (comment) These aren't worth it. If you want to make further docs changes, it would be best to not use an editor that would make these changes automatically. Still, probably best to just merge this, as it's unlikely to cause much if any trouble. |
Would you? I'd greatly appreciate (and propose new changes :-)) |
|
Test build #1780 has finished for PR 8795 at commit
|
|
Merged to master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jaceklaskowski The <\code> end tag was wrong instead of <code>. Maybe it was a typo, but it will lead this page chaotic. I may PR to fix this later.
cc @srowen
`<\code>` end tag missing backslash in
docs/configuration.md{L308-L339}
ref apache#8795
Author: Kai Jiang <jiangkai@gmail.com>
Closes apache#9715 from vectorijk/minor-typo-docs.