mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
'v3.6.3.1'
This commit is contained in:
@@ -37,7 +37,7 @@ public class Random_selection_xnde implements Xox_xnde, Mwh_atr_itm_owner2 {
|
||||
Xox_xnde_.Parse_xatrs(wiki, this, xatrs_hash, src, xnde);
|
||||
|
||||
// parse <choose>
|
||||
List_adp option_list = List_adp_.new_();
|
||||
List_adp option_list = List_adp_.New();
|
||||
Gfh_tag_rdr tag_rdr = Xox_xnde_.New_tag_rdr(ctx, src, xnde).Reg("option", Tag__option).Reg("choicetemplate", Tag__choicetemplate);
|
||||
while (true) {
|
||||
Gfh_tag head_tag = tag_rdr.Tag__move_fwd_head(Gfh_tag_.Id__any);
|
||||
|
||||
@@ -27,7 +27,7 @@ public class Tabber_xnde implements Xox_xnde {
|
||||
ctx.Para().Process_block__xnde(xnde.Tag(), Xop_xnde_tag.Block_bgn);
|
||||
|
||||
// split on "|-|"; EX: "A|-|B" -> tab_1='A'; tab_2='B'
|
||||
List_adp tab_itms_list = List_adp_.new_();
|
||||
List_adp tab_itms_list = List_adp_.New();
|
||||
byte[] xnde_body = Xox_xnde_.Extract_body_or_null(src, xnde); if (xnde_body == null) return;
|
||||
this.id = Id_test == null ? md5_hash.Hash_bry_as_bry(xnde_body) : Id_test;
|
||||
byte[][] tab_itms = Bry_split_.Split(xnde_body, Spr__tab_itms);
|
||||
|
||||
@@ -38,7 +38,7 @@ public class Tabview_xnde implements Xox_xnde, Mwh_atr_itm_owner2 {
|
||||
byte[] tabs_src = Bry_.Mid(src, xnde.Tag_open_end(), xnde.Tag_close_bgn());
|
||||
tabs_src = Bry_.Trim(tabs_src); // if(isset($tabs[0]) && $tabs[0] == "") {unset($tabs[0]);} if($tabs[count($tabs)] == "") {unset($tabs[count($tabs)]);}
|
||||
byte[][] tabs_ary = Bry_split_.Split_lines(tabs_src);
|
||||
List_adp tabs_list = List_adp_.new_();
|
||||
List_adp tabs_list = List_adp_.New();
|
||||
int tabs_len = tabs_ary.length;
|
||||
for (int i = 0; i < tabs_len; ++i) {
|
||||
Tabview_tab_itm itm = Tabview_tab_itm.Parse(wiki, ctx, tabs_ary[i]);
|
||||
@@ -55,7 +55,7 @@ public class Tabview_xnde implements Xox_xnde, Mwh_atr_itm_owner2 {
|
||||
public void Xtn_write(Bry_bfr bfr, Xoae_app app, Xop_ctx ctx, Xoh_html_wtr html_wtr, Xoh_wtr_ctx hctx, Xop_xnde_tkn xnde, byte[] src) {
|
||||
if (tab_itms_ary != null) Tabber_tab_itm.Write(bfr, id, tab_itms_ary);
|
||||
// write html
|
||||
//Bry_bfr bfr = Bry_bfr.new_();
|
||||
//Bry_bfr bfr = Bry_bfr_.New();
|
||||
//bfr.Add_str_a7("<div id=\"flytabs_");
|
||||
//bfr.Add(id);
|
||||
//bfr.Add_str_a7("\">\n<ul>\n");
|
||||
@@ -86,7 +86,7 @@ public class Tabview_xnde implements Xox_xnde, Mwh_atr_itm_owner2 {
|
||||
}
|
||||
else { // not alphanum;
|
||||
if (bfr == null) { // 1st occurrence; create bfr and add initial to it
|
||||
bfr = Bry_bfr.new_();
|
||||
bfr = Bry_bfr_.New();
|
||||
bfr.Add_mid(src, 0, i);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user