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

Reformat XML documents to 100 columns length #308

Merged
merged 3 commits into from
Apr 20, 2017

Conversation

dlax
Copy link
Member

@dlax dlax commented Apr 19, 2017

As mentioned in #206 (comment), to hopefully make future review easier.

I choose 100 columns as a compromise because wrapping to 80 columns would lead to narrow blocks of text for deeply nested elements.

I could not find a tool to automate this that gives satisfactory results so I did that by hand. I occasionally left some text exceed the limit when it looked better not wrapped (e.g. to avoid breaking links).

git diff --word-diff master can be used to get a relevant diff.

When possible wrap text to 100 columns as it seems to be the convention
in recent changes and is probably a good compromise.
Copy link
Contributor

@handrews handrews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One super-minor thing I found by diffing the .txt output, otherwise this looks great, thanks!

<xref target="RFC6906">The 'profile' Link Relation</xref>.
When used as a media-type parameter, HTTP servers gain the ability to perform
Content-Type Negotiation based on profile.
The media-type parameter MUST be a whitespace-separated list of URIs (i.e.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that if a line ends in a period then the .txt generator automatically puts two spaces after that period. It can't tell the difference between an abbreviation and the end of a sentence.

Could you please move the "(i.e." down to the beginning of the next line?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please move the "(i.e." down to the beginning of the next line?

Done, it's better now. Well spotted.

dlax added 2 commits April 20, 2017 20:44
@handrews handrews merged commit c7bac11 into json-schema-org:master Apr 20, 2017
@dlax dlax deleted the pretty-xml branch April 21, 2017 06:46
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.

2 participants