mirror of
https://github.com/gnosygnu/xowa.git
synced 2025-05-31 22:44:34 +00:00
Html: Standardize spacing between subpage entries [#308]
This commit is contained in:
parent
1d54b8a756
commit
1f2b73699b
@ -61,7 +61,7 @@ public class Xoh_subpages_bldr implements gplx.core.brys.Bfr_arg {
|
|||||||
, "</span>"
|
, "</span>"
|
||||||
), "itms")
|
), "itms")
|
||||||
, fmtr_itm = Bry_fmtr.new_
|
, fmtr_itm = Bry_fmtr.new_
|
||||||
( "\n ~{dlm}<a href=\"~{href}\" title=\"~{title}\">~{caption}</a>"
|
( "~{dlm}<a href=\"~{href}\" title=\"~{title}\">~{caption}</a>"
|
||||||
, "dlm", "href", "title", "caption")
|
, "dlm", "href", "title", "caption")
|
||||||
;
|
;
|
||||||
}
|
}
|
@ -19,17 +19,13 @@ public class Xoh_subpages_bldr_tst {
|
|||||||
@Before public void init() {fxt.Init();} private Xoh_subpages_bldr_fxt fxt = new Xoh_subpages_bldr_fxt();
|
@Before public void init() {fxt.Init();} private Xoh_subpages_bldr_fxt fxt = new Xoh_subpages_bldr_fxt();
|
||||||
@Test public void Basic() {
|
@Test public void Basic() {
|
||||||
fxt.Test_bld("Help:A/B/C", String_.Concat_lines_nl_skip_last
|
fxt.Test_bld("Help:A/B/C", String_.Concat_lines_nl_skip_last
|
||||||
( "<span class=\"subpages\">"
|
( "<span class=\"subpages\">< <a href=\"/wiki/Help:A\" title=\"Help:A\">Help:A</a>‎ | <a href=\"/wiki/Help:A/B\" title=\"Help:A/B\">B</a>"
|
||||||
, " < <a href=\"/wiki/Help:A\" title=\"Help:A\">Help:A</a>"
|
|
||||||
, " ‎ | <a href=\"/wiki/Help:A/B\" title=\"Help:A/B\">B</a>"
|
|
||||||
, "</span>"
|
, "</span>"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@Test public void Underscore_space() {// PURPOSE: convert underscore to space; ISSUE#:308 PAGE:en.v:Computer-aided_design/Software DATE:2018-12-23
|
@Test public void Underscore_space() {// PURPOSE: convert underscore to space; ISSUE#:308 PAGE:en.v:Computer-aided_design/Software DATE:2018-12-23
|
||||||
fxt.Test_bld("Help:A_1/B_1/C_1", String_.Concat_lines_nl_skip_last
|
fxt.Test_bld("Help:A_1/B_1/C_1", String_.Concat_lines_nl_skip_last
|
||||||
( "<span class=\"subpages\">"
|
( "<span class=\"subpages\">< <a href=\"/wiki/Help:A_1\" title=\"Help:A 1\">Help:A 1</a>‎ | <a href=\"/wiki/Help:A_1/B_1\" title=\"Help:A 1/B 1\">B 1</a>"
|
||||||
, " < <a href=\"/wiki/Help:A_1\" title=\"Help:A 1\">Help:A 1</a>"
|
|
||||||
, " ‎ | <a href=\"/wiki/Help:A_1/B_1\" title=\"Help:A 1/B 1\">B 1</a>"
|
|
||||||
, "</span>"
|
, "</span>"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user