aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/licentia/document.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-06-14 18:33:54 -0400
committerEduardo Julian2021-06-14 18:33:54 -0400
commit519c0c0c71cdf7ce3dfc64b9781ab826760b3d94 (patch)
tree75fa0672afceff129e5e75afb7a5fed197ce1773 /stdlib/source/program/licentia/document.lux
parentaf3e6e2cb011dc2ad9204440990731a2f272716d (diff)
Extracted Licentia out of the standard library.
Diffstat (limited to '')
-rw-r--r--licentia/source/program/licentia/document.lux (renamed from stdlib/source/program/licentia/document.lux)10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/program/licentia/document.lux b/licentia/source/program/licentia/document.lux
index b1bc20cce..95c14e231 100644
--- a/stdlib/source/program/licentia/document.lux
+++ b/licentia/source/program/licentia/document.lux
@@ -8,11 +8,11 @@
(def: #export (quote text)
(-> Text Text)
- (format text.double-quote text text.double-quote))
+ (format text.double_quote text text.double_quote))
(def: #export (block content)
(-> Text Text)
- (format content text.new-line text.new-line))
+ (format content text.new_line text.new_line))
(def: #export (plural singular)
(-> Text Text)
@@ -25,12 +25,12 @@
(def: #export paragraph
(-> (List Text) Text)
(|>> (list\map ..sentence)
- (text.join-with text.new-line)))
+ (text.join_with text.new_line)))
(template [<name> <word>]
[(def: #export <name>
(-> (List Text) Text)
- (text.join-with (format ", " <word> " ")))]
+ (text.join_with (format ", " <word> " ")))]
[or "or"]
[and "and"]
@@ -43,5 +43,5 @@
(def: #export (section value)
(-> Section Text)
- (format (block (get@ #title value))
+ (format (..block (get@ #title value))
(get@ #content value)))