bluegriffon
bluegriffon copied to clipboard
cleanup doesn't remove trailing <br /> tags
The cleanup functionality that supposedly removes trailing break tags doesn't work for tables, leaving me e.g.:
<td>blah<br />
</td>
So if I just create a default table and fill it in, I'm left with lots of <br /> junk unless I edit the file by hand.
The cleanup process BlueGriffon leaves a lot more
tags than desired. In fact I don't want any <br /> tags! I have no need for them, and I didn't ask for them. Please just get rid of them.
Can you please attach a test document?
Do the following:
- Create an XHTML5 document using the wizard, accepting the defaults.
- Add a 2 x 2 table using the tool button.
- Go into the source and add a
<thead>to the table with<th>cells (turning the table into 2 x 3). - Add "foo" and "bar" in the header row.
- Add "abc" and "def" in the next row.
- Run Tools > Markup Cleaner.
That gives you this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8" />
<title></title>
<meta name="author" content="Garret Wilson" />
</head>
<body>
<table border="1" style="width: 100%">
<thead>
<tr>
<th>foo<br />
</th>
<th>bar<br />
</th>
</tr>
</thead>
<tbody>
<tr>
<td>abc<br />
</td>
<td>def<br />
</td>
</tr>
<tr>
<td><br />
</td>
<td><br />
</td>
</tr>
</tbody>
</table>
</body>
</html>