1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00
This commit is contained in:
gnosygnu
2014-07-06 22:58:35 -04:00
parent 57f65b4d0c
commit ecbe2918d8
187 changed files with 4184 additions and 2286 deletions

View File

@@ -153,7 +153,7 @@ public class Gallery_itm_parser {
private void Fld_end() {
int fld_end = cur_pos;
if (cur_fld != Fld_caption) {
int non_ws_pos = Bry_finder.Find_bwd_non_ws(src, cur_pos - 1, itm_bgn) + 1; // SEE:non_ws_pos
int non_ws_pos = Bry_finder.Find_bwd_non_ws_or_not_found(src, cur_pos - 1, itm_bgn) + 1; // SEE:non_ws_pos
if (non_ws_pos != Bry_.NotFound + 1)
fld_end = non_ws_pos;
}

View File

@@ -176,10 +176,10 @@ public abstract class Gallery_mgr_base {
return tmp_bfr.XtoAryAndClear();
}
private static void Box_hdr_write(Bry_bfr bfr, Xop_xatr_whitelist_mgr whitelist_mgr, byte[] src, byte[] gallery_ul_uid, byte[] cls, byte[] style, ListAdp xatr_list) {
bfr.Add_byte(Byte_ascii.Lt).Add(Html_consts.Ul_tag_bry);
Html_wtr.Write_atr(bfr, Html_atrs.Id_bry, gallery_ul_uid);
Html_wtr.Write_atr(bfr, Html_atrs.Cls_bry, cls);
Html_wtr.Write_atr(bfr, Html_atrs.Style_bry, style);
bfr.Add_byte(Byte_ascii.Lt).Add(Html_tag_.Ul_name_bry);
Html_wtr.Write_atr(bfr, Html_atr_.Id_bry, gallery_ul_uid);
Html_wtr.Write_atr(bfr, Html_atr_.Cls_bry, cls);
Html_wtr.Write_atr(bfr, Html_atr_.Style_bry, style);
if (xatr_list != null) {
int len = xatr_list.Count();
for (int i = 0; i < len; i++) {