explode at \n\n instead of \n
This commit is contained in:
parent
fc3d8e1c98
commit
7006ee6896
@ -110,7 +110,7 @@ if ($O_recipe === null) {
|
|||||||
<ol class="recipeInstructions">
|
<ol class="recipeInstructions">
|
||||||
<?php
|
<?php
|
||||||
if(!empty($S_recipe)) {
|
if(!empty($S_recipe)) {
|
||||||
$steps = explode("\n", $S_recipe);
|
$steps = explode("\n\n", $S_recipe);
|
||||||
$i = 1;
|
$i = 1;
|
||||||
foreach($steps as $step) {
|
foreach($steps as $step) {
|
||||||
echo '<li>
|
echo '<li>
|
||||||
|
|||||||
@ -29,7 +29,7 @@ $O_recipe = $A_view["RECIPE"];
|
|||||||
<h2>Préparation</h2>
|
<h2>Préparation</h2>
|
||||||
<ol>
|
<ol>
|
||||||
<?php
|
<?php
|
||||||
foreach(explode("\n", $O_recipe->S_RECIPE) as $S_instr)
|
foreach(explode("\n\n", $O_recipe->S_RECIPE) as $S_instr)
|
||||||
echo "<li>".$S_instr."</li>";
|
echo "<li>".$S_instr."</li>";
|
||||||
?>
|
?>
|
||||||
</ol>
|
</ol>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user