Skip to content

Commit

Permalink
missing newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrembilla committed Jun 24, 2022
1 parent 5419af9 commit 73a82dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/ramose.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def read(self, file_path):
This method takes in input a path of a file containing a document specified in
Hash Format, and returns its representation as list of dictionaries.
"""

result = []

with open(file_path, "r", newline=None, encoding='utf8') as f:
Expand Down Expand Up @@ -185,6 +185,7 @@ def __header(self, conf):
"""
This method builds the header of the API documentation
"""

result = ""

i = conf["conf_json"][0]
Expand Down Expand Up @@ -214,6 +215,7 @@ def __header(self, conf):
return markdown(result)

def __parameters(self):

result = """## <a id="parameters"></a>Parameters [back to top](#toc)
Parameters can be used to filter and control the results returned by the API. They are passed as normal HTTP parameters in the URL of the call. They are:
Expand Down Expand Up @@ -801,6 +803,7 @@ def store_documentation(self, file_path, css_path=None):
"""
This method stores the HTML documentation of an API in a file.
"""

html = self.get_documentation(css_path)[1]
with open(file_path, "w+", encoding='utf8') as f:
f.write(html)
Expand Down

0 comments on commit 73a82dc

Please sign in to comment.