summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am4
-rw-r--r--doc/lua_api.md4
2 files changed, 5 insertions, 3 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index a90a6fa44cc6..dcfacf6a9a25 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -4,6 +4,6 @@ dist_man_MANS = libucl.3
gen-man: @PANDOC@
tail -n +$$(grep -n '# Synopsis' api.md | cut -d':' -f1) api.md | \
- cat pandoc.template - | sed -e 's/^# \(.*\)/# \U\1/' \
+ cat pandoc.template - | sed -e 's/^# \(.*\)/# \U\1/' \
-e "s/%%date%%/$$(LANG=C date +'%d %B, %Y')/" | \
- @PANDOC@ -s -f markdown -t man -o libucl.3 \ No newline at end of file
+ @PANDOC@ -s -f markdown -t man -o libucl.3
diff --git a/doc/lua_api.md b/doc/lua_api.md
index a53353b3c57e..f7af3caffff4 100644
--- a/doc/lua_api.md
+++ b/doc/lua_api.md
@@ -16,7 +16,7 @@ if not res then
else
local obj = parser:get_object()
local got = ucl.to_format(obj, 'json')
-endif
+end
local table = {
str = 'value',
@@ -25,6 +25,7 @@ local table = {
func = function ()
return 'huh'
end
+}
print(ucl.to_format(table, 'ucl'))
@@ -115,6 +116,7 @@ local table = {
func = function ()
return 'huh'
end
+}
print(ucl.to_format(table, 'ucl'))