I have 2 fields - the country and the city, which I want to show as follows: Country, City (with one space after the decimal point). The only way I can do this is to put everything on one line:
<li>{{{ $obj->country }}}@if($obj->city){{{ ', '.$obj->city }}}@endif</li>
This is really funny.
Now let's say I want to make it readable:
<li>
{{{ $obj->country }}}
@if($edu->city)
{{{ ', '.$obj->city }}}
@endif
</li>
As soon as the second echo moves to a new line, the entire line is displayed with additional space after "Country": Country, City .
Super annoying. Does anyone know how to prevent this behavior?
source
share