aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2020-04-10 14:08:40 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2020-04-11 11:12:18 +0200
commit5ea75a1a8176f764429fb45875626b1b7ef6644c (patch)
tree5e94610f249d4bc4633328ec005412ec74fd8868 /docs
parent12b37c39e19df082e48825cfcf59fc067bffb4d0 (diff)
downloadmitmproxy-5ea75a1a8176f764429fb45875626b1b7ef6644c.tar.gz
mitmproxy-5ea75a1a8176f764429fb45875626b1b7ef6644c.tar.bz2
mitmproxy-5ea75a1a8176f764429fb45875626b1b7ef6644c.zip
examples: reformat to prevent too long lines
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/render_examples.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/render_examples.py b/docs/render_examples.py
index ad156698..b6fa42eb 100755
--- a/docs/render_examples.py
+++ b/docs/render_examples.py
@@ -40,9 +40,9 @@ current_level = 2
for ex in examples:
if os.path.dirname(ex) != current_dir:
current_dir = os.path.dirname(ex)
- print("#"*current_level, current_dir)
+ print("#" * current_level, current_dir)
print(textwrap.dedent("""
{} {}
{{{{< example src="{}" lang="py" >}}}}
- """.format("#"*(current_level+1), ex, "/examples/"+ex)))
+ """.format("#" * (current_level + 1), ex, "/examples/" + ex)))