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
2016-01-17 23:18:07 -05:00
parent 096045614c
commit 235228976e
314 changed files with 4458 additions and 2694 deletions

View File

@@ -28,7 +28,10 @@ public class Xoh_section_mgr {
}
public void Set_content(int section_idx, byte[] src, int pos) {
Xoh_section_itm itm = this.Get_at(section_idx);
itm.Content_(Bry_.Mid(src, itm.Content_bgn(), pos));
if (pos > itm.Content_bgn())
itm.Content_(Bry_.Mid(src, itm.Content_bgn(), pos));
else // TIDY:tidy will collapse "<h2>A</h2>\n\n<h2>B</h2>" to "<h2>A</h2>\n<h2>B</h2>"; this will show up as a pos < itm.Content_bgn; PAGE:en.w:Summer_solstice; DATE:2016-01-04
itm.Content_(Bry_.Empty);
}
public void To_bfr(Bry_bfr bfr) {
int len = this.Len();