Fixed minor formatting issue
This commit is contained in:
parent
026bf18be9
commit
85aa1d4f3b
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue