From 6ffc17d0324bcea9342dffeb86ded735cd0defcf Mon Sep 17 00:00:00 2001 From: tetektoza Date: Sat, 27 Dec 2025 18:45:32 +0100 Subject: [PATCH] Gui: Fix XHTML doc structure - Add missing element in <head> (required by XHTML Strict) - Add <body> wrapper around content (required by XHTML) - Add Content-Type meta tag for proper character encoding - Fix indentation of buttons to be inside body element --- src/Gui/SoFCDB.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Gui/SoFCDB.cpp b/src/Gui/SoFCDB.cpp index c12c3bde4a..ce403a6483 100644 --- a/src/Gui/SoFCDB.cpp +++ b/src/Gui/SoFCDB.cpp @@ -690,14 +690,17 @@ bool Gui::SoFCDB::writeToX3DOM(SoNode* node, std::string& buffer) "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"; out << "<html xmlns='http://www.w3.org/1999/xhtml'>\n" << " <head>\n" + << " <title>FreeCAD X3DOM Export\n" + << " \n" << " \n" << " \n" - << " \n"; + << " \n" + << " \n"; auto onclick = [&out](const char* text) { - out << " \n"; }; @@ -711,7 +714,8 @@ bool Gui::SoFCDB::writeToX3DOM(SoNode* node, std::string& buffer) out << x3d; - out << "\n"; + out << " \n" + << "\n"; buffer = out.str();