Skip to content

Commit

Permalink
update changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
djbe committed May 30, 2017
1 parent 61f2be9 commit 6d0e343
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Due to the removal of legacy code, there are a few breaking changes in this new
* Added the `removeNewlines` filter to remove newlines (and spaces) from a string.
[David Jennes](https://github.com/djbe)
[#47](https://github.com/SwiftGen/StencilSwiftKit/pull/47)
[#48](https://github.com/SwiftGen/StencilSwiftKit/pull/48)

### Internal Changes

Expand Down
4 changes: 3 additions & 1 deletion Documentation/filters-strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,17 @@ Removes all newlines and whitespace characters from the string.
| `test \n\t ` | `test` |
| `test\n test` | `testtest` |
| `\r\ntest\n test\n` | `testtest` |
| ` test test ` | `test test` |

By default it removes whitespace characters, unless a single optional argument is set to "false", "no" or "0":
By default it removes consecutive whitespace characters (and trims the ends), unless a single optional argument is set to "false", "no" or "0":

| Input | Output |
|-----------------------|-----------------------|
| ` \ntest` | ` test` |
| `test \n\t ` | `test \t ` |
| `test\n test` | `test test` |
| `\r\ntest\n test\n` | `test test` |
| ` test test ` | ` test test ` |

## Filter: `snakeToCamelCase`

Expand Down

0 comments on commit 6d0e343

Please sign in to comment.