xdoc <source> tag is not allowed inside paragraphs.
diff --git a/commons-rng-client-api/src/site/xdoc/index.xml b/commons-rng-client-api/src/site/xdoc/index.xml
index 7a30c6d..d7bcc10 100644
--- a/commons-rng-client-api/src/site/xdoc/index.xml
+++ b/commons-rng-client-api/src/site/xdoc/index.xml
@@ -37,6 +37,7 @@
<p>
Example:
+ </p>
<source>import org.apache.commons.rng.UniformRandomProvider;
@@ -46,7 +47,6 @@
}
}
</source>
- </p>
<p>
Browse the <a href="apidocs/index.html">Javadoc</a> to see the complete API.
diff --git a/commons-rng-simple/src/site/xdoc/index.xml b/commons-rng-simple/src/site/xdoc/index.xml
index 88f0128..c579f3d 100644
--- a/commons-rng-simple/src/site/xdoc/index.xml
+++ b/commons-rng-simple/src/site/xdoc/index.xml
@@ -38,6 +38,7 @@
<p>
Example:
+ </p>
<source>import org.apache.commons.rng.UniformRandomProvider;
import org.apache.commons.rng.simple.RandomSource;
@@ -50,7 +51,6 @@
}
}
</source>
- </p>
<p>
Browse the <a href="apidocs/index.html">Javadoc</a> for more information.
diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml
index fb56555..c894fa1 100644
--- a/src/site/xdoc/index.xml
+++ b/src/site/xdoc/index.xml
@@ -33,6 +33,7 @@
<p>
Casual use is as simple as:
+ </p>
<source>import org.apache.commons.rng.UniformRandomProvider;
import org.apache.commons.rng.simple.RandomSource;
@@ -44,8 +45,6 @@
double random = rng.nextDouble();
</source>
- </p>
-
<p>
For more examples and more advanced usage, see the <a href="userguide/rng.html">userguide</a>.
</p>