1
0
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:
gnosygnu 2018-12-27 08:31:13 -05:00
parent 1d54b8a756
commit 1f2b73699b
2 changed files with 3 additions and 7 deletions

View File

@ -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")
; ;
} }

View File

@ -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\">&lt; <a href=\"/wiki/Help:A\" title=\"Help:A\">Help:A</a>&lrm; | <a href=\"/wiki/Help:A/B\" title=\"Help:A/B\">B</a>"
, " &lt; <a href=\"/wiki/Help:A\" title=\"Help:A\">Help:A</a>"
, " &lrm; | <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\">&lt; <a href=\"/wiki/Help:A_1\" title=\"Help:A 1\">Help:A 1</a>&lrm; | <a href=\"/wiki/Help:A_1/B_1\" title=\"Help:A 1/B 1\">B 1</a>"
, " &lt; <a href=\"/wiki/Help:A_1\" title=\"Help:A 1\">Help:A 1</a>"
, " &lrm; | <a href=\"/wiki/Help:A_1/B_1\" title=\"Help:A 1/B 1\">B 1</a>"
, "</span>" , "</span>"
)); ));
} }