From a7f56885eb3fa3fa14248c6be1fd26ab94c5c404 Mon Sep 17 00:00:00 2001 From: vapier Date: Sat, 1 Apr 2017 17:26:16 -0700 Subject: [PATCH] set tab length to 2 Upstream uses indents of 4 spaces by default [1], but gitiles uses 2 spaces [2]. Change md_browser to match. [1]: https://github.com/waylan/Python-Markdown/issues/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} --- tools/md_browser/md_browser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/md_browser/md_browser.py b/tools/md_browser/md_browser.py index d3594bfe520c9..2b45c9740ae72 100755 --- a/tools/md_browser/md_browser.py +++ b/tools/md_browser/md_browser.py @@ -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()