0

While editing body of the node in Full HTML format, i enter these lines:

<div style="text-align:right">
    string 1<br />
    string 2<br />
    <br />
    string 3
</div>

But the real generated html is:

<div style="text-align:right">
    string 1
    <br>
    string 2
    <p>string 3</p>
</div>

What's wrong with that? Why Drupal changes my code in full html? I don't want any extra <p>'s because it breaks the layout.

1 Answer 1

7

By default the Full HTML format has the

Convert line breaks into HTML (i.e. <br> and <p>)

option selected. If you don't want that behaviour, just go to http://mysite.com/admin/config/content/formats/full_html and deselect that option:

enter image description here

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.