1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2024-09-28 14:30:51 +00:00

Html_dump: Add no-op related commits [#547]

This commit is contained in:
gnosygnu 2019-11-25 16:31:45 -05:00
parent 38f670649b
commit cb3b78895c
2 changed files with 5 additions and 5 deletions

View File

@ -26,18 +26,18 @@ public class Xoh_img_cls_ {
Str__thumbimage = "thumbimage"
, Str__thumbborder = "thumbborder"
;
public static final byte[]
public static final byte[]
Bry__none = Bry_.Empty
;
public static final byte[]
public static final byte[]
Bry__thumbimage = Bry_.new_a7(Str__thumbimage)
, Bry__thumbborder = Bry_.new_a7(Str__thumbborder)
;
public static final Btrie_slim_mgr Trie = Btrie_slim_mgr.cs()
public static final Btrie_slim_mgr Trie = Btrie_slim_mgr.cs()
.Add_bry_byte(Bry__thumbimage , Tid__thumbimage)
.Add_bry_byte(Bry__thumbborder , Tid__thumbborder)
;
private static final byte[] Bry__html_class = Bry_.new_a7(" class=\"");
private static final byte[] Bry__html_class = Bry_.new_a7(" class=\"");
public static byte[] To_html(int tid, byte[] other) {
boolean other_is_empty = Bry_.Len_eq_0(other);
if (tid == Xoh_img_cls_.Tid__none && other_is_empty) return Bry_.Empty;

View File

@ -34,7 +34,7 @@ public class Xoh_img_cls_data implements Bfr_arg_clearable {
public void Init_by_parse(Bry_err_wkr err_wkr, byte[] src, Gfh_tag tag) {
this.Clear();
Gfh_atr atr = tag.Atrs__get_by_or_empty(Gfh_atr_.Bry__class); // EX: class='thumbborder'
int src_bgn = atr.Val_bgn();
int src_bgn = atr.Val_bgn();
if (src_bgn == -1) { // class does not exist; defaults to none and exit;
cls_tid = Xoh_img_cls_.Tid__none;
return;