diff options
author | Eric Barboni <skygo@apache.org> | 2015-11-13 18:00:42 +0100 |
---|---|---|
committer | Eric Barboni <skygo@apache.org> | 2015-11-13 18:00:42 +0100 |
commit | 44093a57de41344683d5121e36ba8d7a6da52cb1 (patch) | |
tree | 9627c77cc52e9f534a58d8e8e9368775ec891404 /archiva-modules | |
parent | ee84911352e3988028b6f1db3b758427107cef4a (diff) | |
download | archiva-44093a57de41344683d5121e36ba8d7a6da52cb1.tar.gz archiva-44093a57de41344683d5121e36ba8d7a6da52cb1.zip |
change to handle new template
Diffstat (limited to 'archiva-modules')
-rw-r--r-- | archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/docs/RestDocsServlet.java | 4 |
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 ) |