From 4633c3aa2746b965293ad30da920879030f43162 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 16 Mar 2015 10:41:00 +0100 Subject: [PATCH] add biicode support --- CMakeLists.txt | 7 +++++++ biicode.conf | 7 +++++++ contrib/html5-printer.cpp | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 biicode.conf diff --git a/CMakeLists.txt b/CMakeLists.txt index 1376cfa..61487c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,10 @@ +IF(BIICODE) + ADD_BIICODE_TARGETS() + if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/resources) + file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/resources DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) + ENDIF() + RETURN() +ENDIF(BIICODE) cmake_minimum_required(VERSION 2.6 FATAL_ERROR) cmake_policy(VERSION 2.6) diff --git a/biicode.conf b/biicode.conf new file mode 100644 index 0000000..5dca6b1 --- /dev/null +++ b/biicode.conf @@ -0,0 +1,7 @@ +# Biicode configuration file + +[paths] + / + +[dependencies] + xmltest.cpp + resources/*.xml \ No newline at end of file diff --git a/contrib/html5-printer.cpp b/contrib/html5-printer.cpp index 3205ccd..7728b69 100644 --- a/contrib/html5-printer.cpp +++ b/contrib/html5-printer.cpp @@ -65,7 +65,7 @@ public: protected: virtual void CloseElement () { if (_elementJustOpened && !isVoidElement (_stack.PeekTop())) { - SealElement(); + SealElementIfJustOpened(); } XMLPrinter::CloseElement(); }