From f1aef5c98ea7ffa1d215980f091c16290b1128b2 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Wed, 13 Jan 2016 19:33:09 +0000 Subject: [PATCH] Fix the
 block workaround in doxygen2boostbook.xsl

It turns out the '\code' blocks don't have this problem, so an easier
fix would be just to use them. But now I've implemented the workaround,
might as well leave it in, in case anyone wants to use 
 blocks in
the future.
---
 test/doxygen/autodoc.gold         | 18 ++++++++++++++++--
 test/doxygen/boost/example.hpp    | 28 ++++++++++++++++++++++++++++
 xsl/doxygen/doxygen2boostbook.xsl |  6 +++---
 3 files changed, 47 insertions(+), 5 deletions(-)

diff --git a/test/doxygen/autodoc.gold b/test/doxygen/autodoc.gold
index 95c8181..58434b1 100644
--- a/test/doxygen/autodoc.gold
+++ b/test/doxygen/autodoc.gold
@@ -63,8 +63,22 @@ Embedded docbook list:
 Second list item
 
 Line 1
- Line 2void foo() {}
-
+Line 2void foo() {}
+void foo2() {}
+void bar() {}
+
+void bar2() {}
+Alternative way of writing code, has a complicated workaround because doxygen treats the empty line as a paragraph separator:
+int bar();
+
+int bar2();
+Unfortunately the workaround will merge consecutive blocks, like this:
+int foo();
+
+
+
+int foo2();
+