Skip to content

Commit 007191b

Browse files
committed
Strip body in encode_content.
1 parent 0d7802b commit 007191b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logya/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def f(*args, **kwargs):
4444
def encode_content(headers: dict, body: str) -> str:
4545
"""Encode headers and body in content format."""
4646

47-
return f'---\n{dump(headers, Dumper=Dumper).strip()}\n---\n{body}'
47+
return f'---\n{dump(headers, Dumper=Dumper).strip()}\n---\n{body.strip()}'
4848

4949

5050
def load_yaml(text: str) -> dict:

0 commit comments

Comments
 (0)