Make space out of tabs by default

Signed-off-by: Christian Wolf <github@christianwolf.email>
This commit is contained in:
Christian Wolf 2021-10-17 18:22:07 +02:00
Родитель ed873c7c21
Коммит fab0f497d6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 9FC3120E932F73F1
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -1245,11 +1245,12 @@ class RecipeService {
$str = str_replace(["\r", "\n"], ' ', $str); $str = str_replace(["\r", "\n"], ' ', $str);
} }
$str = str_replace("\t", ' ', $str);
$str = str_replace("\\", '_', $str);
// We want to remove forward-slashes for the name of the recipe, to tie it to the directory structure, which cannot have slashes // We want to remove forward-slashes for the name of the recipe, to tie it to the directory structure, which cannot have slashes
if ($remove_slashes) { if ($remove_slashes) {
$str = str_replace(["\t", "\\", "/"], '_', $str); $str = str_replace('/', '_', $str);
} else {
$str = str_replace(["\t", "\\"], '_', $str);
} }
$str = html_entity_decode($str); $str = html_entity_decode($str);