[Libreoffice-commits] dev-tools.git: help3/xhpeditor
Olivier Hallot (via logerrit)
logerrit at kemper.freedesktop.org
Tue Feb 11 22:42:34 UTC 2020
help3/xhpeditor/index.php | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 6fc43602ef5a7e1f87ac41c7c064cbbd050b9ed5
Author: Olivier Hallot <olivier.hallot at libreoffice.org>
AuthorDate: Tue Feb 11 19:21:18 2020 -0300
Commit: Olivier Hallot <olivier.hallot at libreoffice.org>
CommitDate: Tue Feb 11 23:42:16 2020 +0100
xhpeditor: display filename in render area
Change-Id: Ic34a555cb4332017d4ebbf42f6ad1a3387f58775
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/88480
Tested-by: Olivier Hallot <olivier.hallot at libreoffice.org>
Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>
diff --git a/help3/xhpeditor/index.php b/help3/xhpeditor/index.php
index 312bca9..ff77086 100644
--- a/help3/xhpeditor/index.php
+++ b/help3/xhpeditor/index.php
@@ -62,8 +62,10 @@ $xhp = $_POST["xhpdoc"];
</div>
<?php
$xhp = $_POST["xhpdoc"];
+ $xhp_filename = simplexml_load_string($xhp)->xpath("//filename");
if (isset($_POST["render_page"])) {
- echo '<div id="renderedpageheader"><h2>Rendered page</h2><div class="buttonrow"><div class="systembuttons"><p>System: ';
+ echo '<div id="renderedpageheader"><h2>Rendered page: '.$xhp_filename[0];
+ echo '</h2><div class="buttonrow"><div class="systembuttons"><p>System: ';
$opSys = array("MAC", "WIN", "UNIX");
foreach ($opSys as $value) {
echo '<input type="radio" name="sys" onclick="setSystemSpan(\''.$value.'\')">'.$value.' ';
@@ -91,7 +93,8 @@ $xhp = $_POST["xhpdoc"];
$root = 'helpdocument';
$old = new DOMDocument;
- echo '<div id="renderedpageheader"><h2>Help File Verification</h2></div>';
+ echo '<div id="renderedpageheader"><h2>Help File Verification: '.$xhp_filename[0];
+ echo '</h2></div>';
echo '<div id="renderedpage"><h3>Check XML Formation</h3>';
if ( !$old->loadXML($xhp) ) {
$errors = libxml_get_errors();
More information about the Libreoffice-commits
mailing list