This commit is contained in:
parent
72f267fe89
commit
2874c1a638
1 changed files with 12 additions and 5 deletions
|
@ -183,7 +183,7 @@ Daniel
|
|||
```
|
||||
|
||||
A Markdown formatter considers this to be one paragraph, and reflows it
|
||||
accordingly, causing it to lost semantic meaning:
|
||||
accordingly, causing it to lose semantic meaning:
|
||||
|
||||
```
|
||||
Best wishes, Daniel
|
||||
|
@ -222,14 +222,21 @@ Daniel
|
|||
> that trim trailing whitespace.**
|
||||
|
||||
`mailfmt` detects sign-offs using a very simple heuristic. First, we check if a
|
||||
line has _5 or less_ words, and **ends with a comma**. If we find such a line,
|
||||
we check the _next_ line. If it has 5 or less words **that all begin with an
|
||||
line has _5 or fewer_ words and **ends with a comma**. If we find such a line,
|
||||
we check the _next_ line. If it has 5 or fewer words **that all begin with an
|
||||
uppercase letter**, then we assume these two lines are a _sign-off_, and we
|
||||
don't reflow or wrap them. The heuristic matches a very simple pattern:
|
||||
don't reflow or wrap them. The heuristic supports a very simple pattern:
|
||||
|
||||
```
|
||||
A courteous salutation,
|
||||
First Middle Last Name
|
||||
Prefix. First Middle Last, Suffix
|
||||
```
|
||||
|
||||
For instance:
|
||||
|
||||
```
|
||||
Sincerely,
|
||||
Rev. John Apple Smith, PHD.
|
||||
```
|
||||
|
||||
### Signature blocks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue