Commit d0319acf authored by Penny Leach's avatar Penny Leach
Browse files

leap2a xhtml fix: when replacing images, close them with />


Signed-off-by: default avatarPenny Leach <penny@mjollnir.org>
parent 64e8b6e2
......@@ -962,7 +962,7 @@ class LeapExportOutputFilter {
private function replace_download_link($matches) {
$artefactid = $matches[3];
if (in_array($artefactid, $this->artefactids)) {
return '<' . $matches[1] . 'rel="leap:has_part" href="portfolio:artefact' . hsc($artefactid) . '"' . $matches[5] . '>';
return '<' . $matches[1] . 'rel="leap:has_part" href="portfolio:artefact' . hsc($artefactid) . '"' . $matches[5] . ($matches[1] == 'img' ? '/' : '') . '>';
}
log_debug("Not providing an export-relative link for $artefactid");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment