diff --git a/htroot/xml/bookmarks/xbel/xbel.java b/htroot/xml/bookmarks/xbel/xbel.java index 4e3948db0..c3e2626db 100644 --- a/htroot/xml/bookmarks/xbel/xbel.java +++ b/htroot/xml/bookmarks/xbel/xbel.java @@ -22,7 +22,7 @@ public class xbel { int count = 0;; String root = "/"; - String style = ""; + int style = 0; prop.clear(); switchboard = (plasmaSwitchboard) env; @@ -50,7 +50,9 @@ public class xbel { else { root = "/" + folderName; } } if(post.containsKey("style") && !post.get("style").equals("")) { - style = ""; + style = 1; + prop.putHTML("style_href", post.get("style")); + prop.putHTML("style_type", post.get("style").replaceAll("^.*\\.", "")); } } prop.put("style", style); @@ -80,7 +82,8 @@ public class xbel { prop.put("xbel_"+count+"_elements", ""); count++; - prop.put("xbel_"+count+"_elements", "" + htmlTools.encodeUnicode2xml(fn.replaceAll("(/.[^/]*)*/", "")) + ""); + final String title = fn; // just to make sure fn stays untouched + prop.put("xbel_"+count+"_elements", "" + htmlTools.encodeUnicode2xml(title.replaceAll("(/.[^/]*)*/", "")) + ""); count++; final Iterator bit=switchboard.bookmarksDB.getBookmarksIterator(fn, isAdmin); count = print_XBEL(bit, count); diff --git a/htroot/xml/bookmarks/xbel/xbel.xml b/htroot/xml/bookmarks/xbel/xbel.xml index abc5f17b6..69b9a7b45 100644 --- a/htroot/xml/bookmarks/xbel/xbel.xml +++ b/htroot/xml/bookmarks/xbel/xbel.xml @@ -1,6 +1,6 @@ -#[style]# +#(style)#::#(/style)# #{xbel}# #[elements]#