From ed8d234975e3df79ab60cdc990f42856e5811d3f Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Thu, 27 Dec 2018 16:29:54 +0000 Subject: * Songs: Fix spacing for newly created songs --- laravel/app/Http/Controllers/SongController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'laravel/app') 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 ); -- cgit 1.4.1