This makes the rendered HTML appear equally-sized on both mobile and desktop displays.
Before
After
Notes
Although this is not present in the original $ python -m http.server command I found that there is a subtle difference between the simplehttpserver and python commands (on Windows at least) with regards to sorting of the listed files & directories, so I decided that it is acceptable for this difference as well.
I saw that the pythonliststyle_test.go imports are not formatted with goimports but I didn't want to clutter the PR.
I was tempted to do the same for the default server, but I saw the the Go FileServer doesn't return full HTML but rather just a <pre> tag. Adding a new handler just for that seemed like it would make the code harder to read for a diminishing gain (not to mention the possible slow-down).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This makes the rendered HTML appear equally-sized on both mobile and desktop displays.
Notes