uber-go / guide

The Uber Go Style Guide.
Apache License 2.0
15.91k stars 1.72k forks source link

visual fix: reduce width and replace tabs #184

Closed tyler-french closed 1 year ago

tyler-french commented 1 year ago

The tables added in #174 are a bit wide and hard to fit on smaller screens.

By changing the \t to , and splitting a line, we can reduce this width.

tyler-french commented 1 year ago

FYI @abhinav, I noticed it looks a little wide on some browsers: https://github.com/uber-go/guide/blob/master/style.md#test-tables

abhinav commented 1 year ago

I tried transposing the table to see if that helped. It takes less horizontal space, but I don't think that's better. I'll revert my change.

abhinav commented 1 year ago

Yeah, I think tabs to two spaces here is the only way right now to demonstrate them side-by-side without a lot of horizontal scrolling. We already use two spaces for indentation in most other code samples in the guide.