Thellmann / callimachus

Automatically exported from code.google.com/p/callimachus
Other
0 stars 0 forks source link

Empty table cells are omitted in from template #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
With some data where an rdfs:label is not always available a table of rows with 
2 cells: one for the optional label and the other for the URI.

    <table>
        <tr rel="rdfs:isDefinedBy" resource="?link">
            <td>{rdfs:label}&#160;</td>
            <td><a class="diverted" href="?link">{?link}</a></td>
        </tr>
    </table>

The first cell does not get rendered at all if the label does not exist. Even 
putting the nbsp (&#160;) in the cell does not help

            <td><span property="rdfs:label"/>&#160;</td>
            <td><span>{rdfs:label}&#160;</span></td>
            <td><span>{rdfs:label}</span>&#160;</td>
But none of them work – the <td> is dropped whatever I do

Original issue reported on code.google.com by ja...@3roundstones.com on 11 Sep 2012 at 12:36