Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proselint: trim the markdowns before running proselint #525

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/scripts/cleanmd.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env perl
# Copyright (C) Daniel Stenberg, <[email protected]>, et al.
#
# SPDX-License-Identifier: curl
#
# Input: a markdown file, it gets modified *in place*
#
# The main purpose is to strip off quotes, lines starting with four spaces,
# so that the result can be run through proselint better.
#

my $f = $ARGV[0];

open(F, "<$f") or die;

while(<F>) {
$_ =~ s/^ .*//g;

push @out, $_;
}
close(F);

open(O, ">$f") or die;
print O @out;
close(O);
3 changes: 3 additions & 0 deletions .github/workflows/proselint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
- name: install prereqs
run: sudo apt-get install python3-proselint

- name: trim off quoted parts
run: find . -name "*.md" -print0 | xargs -0 -n1 .github/scripts/cleanmd.pl

# config file help: https://github.com/amperser/proselint/
- name: store proselint config
run: |
Expand Down
5 changes: 2 additions & 3 deletions libcurl-http/cookies.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ the semicolon separator.
## Import export

The cookie in-memory store can hold a bunch of cookies, and libcurl offers
very powerful ways for an application to play with them. You can set new
cookies, you can replace an existing cookie and you can extract existing
cookies.
powerful ways for an application to play with them. You can set new cookies,
you can replace an existing cookie and you can extract existing cookies.

### Add a cookie to the cookie store

Expand Down
2 changes: 1 addition & 1 deletion usingcurl/smtp.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ to the mail server at `mail.example.com`, use:

curl smtp://mail.example.com/client.example.com

## No MX lookup!
## No MX lookup

When you send email with an ordinary mail client, it first checks for an MX
record for the particular domain you want to send email to. If you send an
Expand Down
Loading