1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

Html_dump: Fix repeating links on many de.w pages

This commit is contained in:
gnosygnu
2018-04-17 07:19:37 -04:00
parent 3923df5e19
commit 24aefd43e4
4 changed files with 39 additions and 3 deletions

View File

@@ -51,5 +51,9 @@ public class Xoh_hzip_dict_ {
, Key__pgbnr = "pgbnr"
, Key__media = "media"
;
public static final int Hzip__none = 0, Hzip__v1 = 1, Hzip__plain = 2; // SERIALIZED
public static final int // SERIALIZED
Hzip__none = 0
, Hzip__v1 = 1
, Hzip__plain = 2 // used for page_sync
;
}

View File

@@ -93,6 +93,12 @@ public class Xoh_img_hzip__dump__basic__tst {
, "<a href='/wiki/File:A.png' class='image' title='abc' xowa_title='A.png'><img data-xowa-title='A.png' data-xoimg='0|220|-1|-1|-1|-1' src='' width='0' height='0' class='cls1' alt='abc'></a>"
);
}
@Test public void Manual_img_cls_empty() { // PURPOSE: handle empty class; EX: [[File:A.png|class=""]] de.w:Butter; DATE:2018-04-11
fxt.Test__bicode
( "~%!-A.png~)#Sabc~"
, "<a href='/wiki/File:A.png' class='image' title='abc' xowa_title='A.png'><img data-xowa-title='A.png' data-xoimg='0|220|-1|-1|-1|-1' src='' width='0' height='0' class='' alt='abc'></a>"
);
}
@Test public void Imap() {
fxt.Test__bicode
( "~%}#P`uA.png~#:#S#+\""