From 85aa1d4f3b44cfc30a25df447f1a9ef7dd43d5e5 Mon Sep 17 00:00:00 2001 From: Nanda Scott Date: Sat, 27 Oct 2018 22:56:57 -0400 Subject: [PATCH] Fixed minor formatting issue --- Autocomplete.md | 6 ++++-- gen_docs.py | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Autocomplete.md b/Autocomplete.md index 14f61b9..b0bafef 100644 --- a/Autocomplete.md +++ b/Autocomplete.md @@ -7,7 +7,8 @@ These docs will likely not be as detailed as the official Scryfall Documentation ## Args |arg|type|description| -|:---:|:---:|:---:||q|string|The query of the autocompletion.| +|:---:|:---:|:---:| +|q|string|The query of the autocompletion.| |format|string, optional|Defaults to \'json\'. Returns data in the specified method.| |face|string, optional|Defaults to empty string. If you\'re using the `image` format, this will specify if you want the front or back face.| |version|string, optional|Defaults to empty string. If you\'re using the `image` format, this will specify if you want the small, normal, large, etc version of the image.| @@ -19,7 +20,8 @@ N/A ## Raises |exception type|reason| -|:---:|:---:||Exception|If the \'q\' parameter is not provided.| +|:---:|:---:| +|Exception|If the \'q\' parameter is not provided.| |Exception|If the object returned is an error.| ## Examples diff --git a/gen_docs.py b/gen_docs.py index fc4c386..6e29e93 100644 --- a/gen_docs.py +++ b/gen_docs.py @@ -4,7 +4,7 @@ from scrython import * import re def format_args(string, f): - f.write('\n## Args\n\n|arg|type|description|\n|:---:|:---:|:---:|') + f.write('\n## Args\n\n|arg|type|description|\n|:---:|:---:|:---:|\n') arg_list = re.findall(r'(\w*\s*\(\w+[,\s\w]{1,}\):[\w\s\'\\`,.]*[^\w\s\(])', string) @@ -26,7 +26,7 @@ def format_returns(string, f): def format_raises(string, f): - f.write('\n## Raises\n\n|exception type|reason|\n|:---:|:---:|') + f.write('\n## Raises\n\n|exception type|reason|\n|:---:|:---:|\n') exception_list = re.findall(r'\w+:[\w\s\\\']+[^\s\w:]', string)