Compare commits
2 Commits
698da7f8b7
...
2b25c13095
| Author | SHA1 | Date | |
|---|---|---|---|
| 2b25c13095 | |||
| 357bcae450 |
@ -56,6 +56,7 @@ defmodule Outlook.InternalTree do
|
||||
|
||||
def render_public_content(tree, translation, language) do
|
||||
Translation.render_translation(tree, translation)
|
||||
|> garnish(%{})
|
||||
|> Html.render_doc()
|
||||
|> Hyphenation.hyphenate(language)
|
||||
end
|
||||
|
||||
@ -18,7 +18,7 @@ defmodule Outlook.InternalTree.RawInternalBasic do
|
||||
|> String.replace(~r/\.\.\.+/u, "…")
|
||||
|> String.replace(~r/([[:upper:]])\./u, "\\1#{@nonperiodmarker}")
|
||||
|> String.replace(~r/(\d)\.(\d)/u, "\\1#{@nonperiodmarker}\\2")
|
||||
|> String.replace(~r|([.?!]["'”]?\s*)|u, "\\1#{@splitmarker}")
|
||||
|> String.replace(~r|([.?!]["'”’]?\s*)|u, "\\1#{@splitmarker}")
|
||||
|> String.replace(@nonperiodmarker, ".")
|
||||
} | set_split_markers(rest) ]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user