Skip to content

Commit

Permalink
1.8.1, check changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico Kaltofen committed May 2, 2019
1 parent 1e6081f commit 9dc1664
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog
All notable changes to this project will be documented in this file.

## [1.8.1] - 2019-05-02

### Fixed
- `README.md`

## [1.8.0] - 2019-05-02

### Changed
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ If you want to skip several tags from hyphenation simply add `hyphen-none` as cs
Hyphenator comes with line break exception handling.
Simply add `lineBreakExceptions` on `tl_page` and prevent line break for connected word groups like:

- Company Names (search: `Heimrich & Hannot GmbH`, will be replaced to: `Heimrich & Hannot GmbH`)
- Prices and other units (search: `(\d|€)(\s)(\w)`, replace: `$1[nbsp]$3`, Example: `160.000 m²` -> `160.000 m²`, `167 Mio. €` -> `167 Mio. €`)
- Company Names (search: `Heimrich & Hannot GmbH`, will be replaced to: `<span class="text-nowrap">Heimrich&nbsp;&amp;&nbsp;Hannot&nbsp;GmbH</span>`)
- Prices and other units (search: `(\d|€)(\s)(\w)`, replace: `$1[nbsp]$3`, Example: `160.000 m²` -> `160.00<span class="text-nowrap">0&nbsp;m</span>²`, `167 Mio. €` -> `16<span class="text-nowrap">7&nbsp;M</span>io.&nbsp;€`)

As you can see, if you provide an replace pattern, than an regular expression will handle the replacement, otherwise if only an search pattern is provided, spaces will be protected with `&nbsp;`.

Expand Down

0 comments on commit 9dc1664

Please sign in to comment.