aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/docs/RestDocsServlet.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/docs/RestDocsServlet.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/docs/RestDocsServlet.java
index c5e47a517..3e91e48c5 100644
--- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/docs/RestDocsServlet.java
+++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/docs/RestDocsServlet.java
@@ -66,7 +66,7 @@ public class RestDocsServlet
// replace all links !!
Document document = Jsoup.parse( is, "UTF-8", "" );
- Element body = document.body();
+ Element body = document.body().child( 0 );
Elements links = body.select( "a[href]" );
@@ -107,7 +107,7 @@ public class RestDocsServlet
}
Document res = new Document( "" );
- res.appendChild( body.select( "div[class=container-fluid]" ).last() );
+ res.appendChild( body.select( "div[id=main]" ).first() );
Elements scripts = body.select( "script" );
for ( Element script : scripts )