mirror of
https://github.com/gnosygnu/xowa.git
synced 2024-10-27 20:34:16 +00:00
Htxt: Extract img.src data [#404]
This commit is contained in:
parent
04c7326b1d
commit
7bcbdabbfc
@ -105,4 +105,9 @@ public class Xoh_img_hzip__dump__basic__tst {
|
||||
, "<img data-xowa-title='A.png' data-xoimg='1|220|180|-1|-1|-1' src='' width='0' height='0' alt='' usemap='#imagemap_1_1'>"
|
||||
);
|
||||
}
|
||||
@Test public void Existing_src_causes_npe() { // ISSUE#:400; DATE:2019-03-26
|
||||
fxt.Test__decode
|
||||
( "%}'h+bAA.png/!6!1bA.png"
|
||||
, "<a href=\"/wiki/Help:A\" class=\"image\" xowa_title=\"A.png\"><img src=\"file:///mem/xowa/file/commons.wikimedia.org/thumb/7/0/A.png/20px.png\" width=\"20\" height=\"15\" alt=\"b\"></a>");
|
||||
}
|
||||
}
|
||||
|
@ -110,6 +110,7 @@ public class Xoh_img_src_data implements Bfr_arg_clearable, Xoh_itm_parser {
|
||||
}
|
||||
public void Init_by_decode(byte[] src, boolean file_is_orig, byte[] file_ttl_bry, int file_w, double file_time, int file_page) {
|
||||
this.src_bry = src; this.src_bgn = 0; this.src_end = src.length;
|
||||
this.src_mid = Bry_.Mid(src, src_bgn, src_end);
|
||||
this.file_is_orig = file_is_orig;
|
||||
this.file_ttl_bry = file_ttl_bry; this.file_w = file_w; this.file_time = file_time; this.file_page = file_page;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user