PHPackages                             mvccore/ext-view-helper-linebreaks - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. mvccore/ext-view-helper-linebreaks

ActiveLibrary[Framework](/categories/framework)

mvccore/ext-view-helper-linebreaks
==================================

MvcCore - Extension - View - Helper - Line Breaks - processing any visible text content for non-line breaking spaces.

v5.3.0(1y ago)132011BSD-3-ClausePHPPHP &gt;=5.4.0

Since Jan 16Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/mvccore/ext-view-helper-linebreaks)[ Packagist](https://packagist.org/packages/mvccore/ext-view-helper-linebreaks)[ RSS](/packages/mvccore-ext-view-helper-linebreaks/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (2)Versions (12)Used By (1)

MvcCore - Extension - View - Helper - Line Breaks
=================================================

[](#mvccore---extension---view---helper---line-breaks)

[![Latest Stable Version](https://camo.githubusercontent.com/f4548b31034f2871a699ddf4e0c7bc5d6262647d641868f7ea7f6a3f3297db5b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f537461626c652d76352e332e312d627269676874677265656e2e7376673f7374796c653d706c6173746963)](https://github.com/mvccore/ext-view-helper-linebreaks/releases)[![License](https://camo.githubusercontent.com/53baed538c1c87a033a212f6f4acce684d36137f8622307643ab25e08118452e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d425344253230332d627269676874677265656e2e7376673f7374796c653d706c6173746963)](https://mvccore.github.io/docs/mvccore/5.0.0/LICENSE.md)[![PHP Version](https://camo.githubusercontent.com/9e923690739211296a00adce5d359999dfa345f80fc1b2e2cfe72c49523ee334/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d2533453d352e342d627269676874677265656e2e7376673f7374796c653d706c6173746963)](https://camo.githubusercontent.com/9e923690739211296a00adce5d359999dfa345f80fc1b2e2cfe72c49523ee334/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d2533453d352e342d627269676874677265656e2e7376673f7374796c653d706c6173746963)

MvcCore View Helper extension for processing any visible text content for non-line breaking spaces. Spaces between digits like `9 999` are replaced into `9&nbsp;999` automatically.

Installation
------------

[](#installation)

```
composer require mvccore/ext-view-helper-linebreaks
```

Configuration
-------------

[](#configuration)

You can configure to not break line:

- after any custom weak word (mostly conjunctions) by language
- inside custom text shortcuts (example: U. S.) by language
- between digits and it's configured units

Example
-------

[](#example)

Template code:

```
