summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorBenjamin Franzke <bfr@qbus.de>2015-02-19 09:27:55 +0100
committerBenjamin Franzke <bfr@qbus.de>2015-02-19 09:27:55 +0100
commit2409e6b26e6b103e8d82a4f838f686a4d6132f54 (patch)
tree613051b875e0b8d8fad2bcdc357ae3d487f54bb5 /update.php
parentc6ee3cec01cdcc1dff87eb984d54ae787d34fa0e (diff)
downloadendnote-import-2409e6b26e6b103e8d82a4f838f686a4d6132f54.tar.gz
endnote-import-2409e6b26e6b103e8d82a4f838f686a4d6132f54.tar.bz2
endnote-import-2409e6b26e6b103e8d82a4f838f686a4d6132f54.zip
update.php: Add comment about the <single-tag/> replace
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/update.php b/update.php
index 1a5233b..174970e 100755
--- a/update.php
+++ b/update.php
@@ -28,6 +28,10 @@ $proc2->importStyleSheet($process);
$step1 = $proc1->transformToDoc($xml);
$step2 = $proc2->transformToXML($step1);
+/*
+ * LOAD XML has bugs (NULL columns) when there are empty, self closing tags like
+ * <title/> Replace those with <title></title>
+ */
$step3 = preg_replace('#<([^>]*)/>#', '<\1></\1>', $step2);
file_put_contents($output, $step3);