diff options
| author | Zach DeCook <zachdecook@gmail.com> | 2018-12-27 16:29:54 +0000 |
|---|---|---|
| committer | Zach DeCook <zachdecook@gmail.com> | 2018-12-27 16:29:54 +0000 |
| commit | ed8d234975e3df79ab60cdc990f42856e5811d3f (patch) | |
| tree | 887abf23d8d46ead5275228060e5a2095834f1d8 /laravel/app/Http/Controllers | |
| parent | e31c45a0482cb14b49175f983e466d96aa409ae6 (diff) | |
| download | prosongsa-ed8d234975e3df79ab60cdc990f42856e5811d3f.tar.gz | |
* Songs: Fix spacing for newly created songs
Diffstat (limited to 'laravel/app/Http/Controllers')
| -rw-r--r-- | laravel/app/Http/Controllers/SongController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/laravel/app/Http/Controllers/SongController.php b/laravel/app/Http/Controllers/SongController.php index 00216ce..8d6c497 100644 --- a/laravel/app/Http/Controllers/SongController.php +++ b/laravel/app/Http/Controllers/SongController.php @@ -16,7 +16,7 @@ class SongController extends Controller $newText = ''; $transp = $_GET['transp'] ?? 0; foreach( $lines as $line ){ - $line = htmlspecialchars( $line ); + $line = trim(htmlspecialchars( $line ), "\n\t\r"); if ( $this->chordline( $line ) ) { if ( $transp != 0) { $line = $this->z_transpose2( $line, $transp ); |
