Trim equation
This commit is contained in:
@@ -93,6 +93,7 @@ class SP_Meta_Box_Equation {
|
|||||||
<div class="sp-equation">
|
<div class="sp-equation">
|
||||||
<span class="sp-equation-variable"><?php echo $title; ?> = </span>
|
<span class="sp-equation-variable"><?php echo $title; ?> = </span>
|
||||||
<span class="sp-equation-formula"><?php
|
<span class="sp-equation-formula"><?php
|
||||||
|
$equation = trim( $equation );
|
||||||
if ( $equation !== '' ):
|
if ( $equation !== '' ):
|
||||||
$equation = explode( ' ', $equation );
|
$equation = explode( ' ', $equation );
|
||||||
foreach ( $equation as $part ):
|
foreach ( $equation as $part ):
|
||||||
|
|||||||
Reference in New Issue
Block a user