# Fancy Line Wrapper
A simple webpage that helps me format git commit messages the way I like and to match external requirements.

1. [Overview](#overview)
1. [Useful Tips](#useful-tips-)

[Go to Fancy Line Wrapper here](FancyLineWrapper.html) or [the GitHub Pages hosted one here](https://rkanter.github.io/FancyLineWrapper/FancyLineWrapper.html).

### Overview
Enter text into the upper text box however you want, and the lower text box will automatically re-format it on-the-fly
according to the following rules:
1. Line wraps at the configured number of characters (80 by default).
1. Lines beginning with a list marker (bullets, numbers, letters, Roman numerals) are properly indented as a list,
including wrapping the line with deeper indenting so it matches nicely.
1. Supported list markers include:
    - Bullets: `-`, `*`, `+`
    - Numbers/Letters: `1.`, `1)`, `(1)`, `a.`, `a)`, `(a)`
    - Roman numerals: `i.`, `i)`, `(i)`, `iii.`, `(iii)`
1. Lists also support nesting, including wrapping; just use spaces to indent the list marker.
1. "Fancy" quotes, dashes, and ellipses are replaced with plain ones (e.g. `“foo”` –> `"foo"`, `–` –> `-`, `…` –> `...`)
1. Code block areas (opened with ` ``` ` and closed with ` ``` `) won't have any formatting applied.

Here's an example to better illustrate things:

![screenshot.png](screenshot.png)

### Useful Tips:
- The resulting text can either be copy-pasted from the lower text box the usual way, or by clicking the giant copy
button.
- The upper text box can be resized freely, while the lower text box can only be resized down.
- Refreshing, or even closing the page will *not* lose your entered text.
- If your browser/OS has spell-checking, it should work.
- You can change the line length for wrapping by clicking the "Settings" button.
