cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1551358 - /cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java
Date Mon, 16 Dec 2013 21:10:53 GMT
Author: dkulp
Date: Mon Dec 16 21:10:53 2013
New Revision: 1551358

URL: http://svn.apache.org/r1551358
Log:
Detect highliter type from default-parameter

Modified:
    cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java

Modified: cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java
URL: http://svn.apache.org/viewvc/cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java?rev=1551358&r1=1551357&r2=1551358&view=diff
==============================================================================
--- cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java (original)
+++ cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java Mon Dec 16 21:10:53 2013
@@ -577,8 +577,19 @@ public class Page extends AbstractPage i
                                     System.out.println("WARNING Page " + page.title + " has
a broken code block");
                                 }
                             }
+                        } else if ("default-parameter".equals(ent.getKey())) {
+                            String s = ent.getValue();
+                            if ("xml".equals(s) || "java".equals(s)) {
+                                lang = s;
+                            }
                         }
                     }
+                    /*
+                    if (page.getTitle().equals("Security")) {
+                        System.out.println(params);
+                        System.out.println("lang: " + lang);
+                    }
+                    */
                     if (StringUtils.isEmpty(lang)) {
                         lang = "java";
                     }



Mime
View raw message