thedigicraft / Atom.CMS

Atom.CMS
56 stars 52 forks source link

Whitespace displaying in body form field in Admin #167

Closed dbashby closed 8 years ago

dbashby commented 8 years ago

I have completed the form and upon refresh of the page the form was working apart from in the body form field there is a white space before the body text starts, this is only on the top line.

I thought using the trim function might work but it did not solve the issue. I have come accross this issue a long time ago but cannot remember what the solution is.

Thanks for any help!

The code from the body is

`

                    <textarea class="form-control" name="body" id="body" rows="8" placeholder="Page Body">
                        <?php echo $opened['body']; ?>
                    </textarea>
                </div>`

body

dbashby commented 8 years ago

I just moved all the code onto the same line and the whitespace went.

<textarea class="form-control" name="body" id="body" rows="8" placeholder="Page Body"><?php echo $opened['body']; ?></textarea>