Skip to content

Commit 7b4f023

Browse files
committed
Force foundation to have ellipsis as empty string when true is provided. Otherwise let through whatever is provided.
1 parent b970f65 commit 7b4f023

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/scrivener/html.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ defmodule Scrivener.HTML do
197197
end
198198
end
199199

200+
defp page({:ellipsis, true}, url_params, args, page_param, path, paginator, :foundation) do
201+
page({:ellipsis, ""}, url_params, args, page_param, path, paginator, :foundation)
202+
end
200203
defp page({:ellipsis, true}, url_params, args, page_param, path, paginator, style) do
201204
page({:ellipsis, unquote(@raw_defaults[:ellipsis])}, url_params, args, page_param, path, paginator, style)
202205
end

test/scrivener/html_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ defmodule Scrivener.HTMLTest do
327327
[60, "span", [[32, "class", 61, 34, "", 34]], 62, "8", 60, 47, "span", 62],
328328
60, 47, "li", 62],
329329
[60, "li", [[32, "class", 61, 34, "ellipsis", 34]], 62,
330-
[60, "span", [[32, "class", 61, 34, "", 34]], 62, "…", 60, 47, "span",
330+
[60, "span", [[32, "class", 61, 34, "", 34]], 62, "", 60, 47, "span",
331331
62], 60, 47, "li", 62],
332332
[60, "li", [[32, "class", 61, 34, "", 34]], 62,
333333
[60, "span", [[32, "class", 61, 34, "", 34]], 62, "10", 60, 47, "span", 62],

0 commit comments

Comments
 (0)