[Xerte-dev] Re: Editor inserts extra <br> tags between paras if a heading is used??

Julian Tenney Julian.Tenney at nottingham.ac.uk
Thu May 14 08:39:54 BST 2015


Yes, file an issue. I'm not sure if it's something Tom is already aware of, or something else,

J

-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, Bradley
Sent: 14 May 2015 00:15
To: For Xerte technical developers
Subject: [Xerte-dev] Editor inserts extra <br> tags between paras if a heading is used??

If I create a text page and put the following HTML into it:

```
<p>Para 1
</p>
<p>Para 2
</p>
```

When I click Play it looks as I would expect it to, and if I look at the source of the page I see basically that markup in the pageContents div.

However, if I add a heading like so:

```
<h2>Heading
</h2>
<p>Para 1
</p>
<p>Para 2
</p>
```

What actually gets rendered now is:

```
<h2>Heading</h2>
<br>
<br>
<p>Para 1</p>
<br>
<br>
<p>Para 2</p>
<br>
```

The result... doesn’t look very good. 

I haven’t gotten to dig into this much, but I can’t imagine what would do a thing like this, let alone why. Does anyone know? Should I file this as an issue on github?

Thanks,
—Brad


More information about the Xerte-dev mailing list