Skip to content
This repository has been archived by the owner on Jul 18, 2018. It is now read-only.

Commit

Permalink
set tab length to 2
Browse files Browse the repository at this point in the history
Upstream uses indents of 4 spaces by default [1], but gitiles uses
2 spaces [2].  Change md_browser to match.

[1]: Python-Markdown/markdown#451
[2]: https://gerrit.googlesource.com/gitiles/+/master/Documentation/markdown.md#Lists

R=dpranke@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2772173002
Cr-Commit-Position: refs/heads/master@{#461334}
  • Loading branch information
vapier authored and Commit bot committed Apr 2, 2017
1 parent 96efe9c commit a7f5688
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/md_browser/md_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def _DoMD(self, path):

md = markdown.Markdown(extensions=extensions,
extension_configs=extension_configs,
tab_length=2,
output_format='html4')

has_a_single_h1 = (len([line for line in contents.splitlines()
Expand Down

0 comments on commit a7f5688

Please sign in to comment.