Skip to content

Commit 3a83d08

Browse files
committed
Trim trailing empty line from README.md
1 parent 6303084 commit 3a83d08

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ format:
2626
format_doc:
2727
# Trim white space
2828
sed -i -e 's_[[:space:]]*$$__' README.md
29+
# Trim trailing empty line
30+
sed -i -e '$${/^$$/d;}' README.md
2931
# Replace true->True false->False: sed -e "s/\b\(false\|true\)/\u\1/g"
3032
find . -type f -iname '*.md' -exec sed -i -e 's_\b\(false\|true\)_\u\1_g' '{}' \;
3133

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,3 @@ Class | Method | HTTP request | Description
149149
- [RecognizeBase64Request](docs/RecognizeBase64Request.md)
150150
- [RegionPoint](docs/RegionPoint.md)
151151
- [ScanBase64Request](docs/ScanBase64Request.md)
152-

scripts/insert-example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def sub_match(match):
2020
return read_text(file_name)
2121

2222
text = REPLACE_RE.sub(sub_match, content)
23-
print(text)
23+
print(text, end="")
2424

2525

2626
def parse_args() -> typing.Dict[str, typing.Any]:

0 commit comments

Comments
 (0)