summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2017-12-12 16:54:15 +0000
committerAndy Williams <andy@andywilliams.me>2017-12-12 16:54:15 +0000
commit92c9ec33e7f23d1b3eef6c0a75af2802a699b57d (patch)
tree036b8f1bfae044c8b7b086e073935685871d8a71
parent86b37828d9866465676f9fa6d07629696c31db2d (diff)
docs: Save a few kB by stripping spaces from newlines
-rw-r--r--src/scripts/elua/apps/gendoc.lua20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/scripts/elua/apps/gendoc.lua b/src/scripts/elua/apps/gendoc.lua
index ac0c4dfe16..04378b0061 100644
--- a/src/scripts/elua/apps/gendoc.lua
+++ b/src/scripts/elua/apps/gendoc.lua
@@ -756,8 +756,7 @@ local build_functable = function(f, tcl, tbl, newm)
756 bdoc = doc:brief_get(docf) 756 bdoc = doc:brief_get(docf)
757 end 757 end
758 if bdoc ~= "No description supplied." then 758 if bdoc ~= "No description supplied." then
759 lbuf:write_br() 759 lbuf:write_br(true)
760 lbuf:write_nl()
761 lbuf:write_raw("> ") 760 lbuf:write_raw("> ")
762 lbuf:write_raw(bdoc) 761 lbuf:write_raw(bdoc)
763 end 762 end
@@ -771,7 +770,7 @@ local build_functable = function(f, tcl, tbl, newm)
771 codes[#codes + 1] = gen_func_csig(func, dtree.Function.PROP_SET) 770 codes[#codes + 1] = gen_func_csig(func, dtree.Function.PROP_SET)
772 end 771 end
773 lbuf:write_code(table.concat(codes, "\n"), "c") 772 lbuf:write_code(table.concat(codes, "\n"), "c")
774 lbuf:write_br() 773 lbuf:write_br(true)
775 end 774 end
776 775
777 -- sigs and description 776 -- sigs and description
@@ -834,14 +833,12 @@ local build_functable = function(f, tcl, tbl, newm)
834 -- class grouping for inheritance 833 -- class grouping for inheritance
835 if cl ~= prevcl then 834 if cl ~= prevcl then
836 if wrote then 835 if wrote then
837 f:write_br() 836 f:write_br(true)
838 f:write_nl()
839 end 837 end
840 838
841 prevcl = cl 839 prevcl = cl
842 f:write_link(cl:nspaces_get(true), cl:full_name_get()) 840 f:write_link(cl:nspaces_get(true), cl:full_name_get())
843 f:write_br() 841 f:write_br(true)
844 f:write_nl()
845 f:write_raw("> ") 842 f:write_raw("> ")
846 wrote = true 843 wrote = true
847 elseif not newm then 844 elseif not newm then
@@ -947,8 +944,7 @@ local build_evtable = function(f, tcl, tbl, newm)
947 if newm then 944 if newm then
948 local bdoc = ev:doc_get():brief_get() 945 local bdoc = ev:doc_get():brief_get()
949 if bdoc ~= "No description supplied." then 946 if bdoc ~= "No description supplied." then
950 lbuf:write_br() 947 lbuf:write_br(true)
951 lbuf:write_nl()
952 lbuf:write_raw("> ") 948 lbuf:write_raw("> ")
953 lbuf:write_raw(bdoc) 949 lbuf:write_raw(bdoc)
954 end 950 end
@@ -977,14 +973,12 @@ local build_evtable = function(f, tcl, tbl, newm)
977 local cl = item[0] 973 local cl = item[0]
978 if cl ~= prevcl then 974 if cl ~= prevcl then
979 if wrote then 975 if wrote then
980 f:write_br() 976 f:write_br(true)
981 f:write_nl()
982 end 977 end
983 978
984 prevcl = cl 979 prevcl = cl
985 f:write_link(cl:nspaces_get(true), cl:full_name_get()) 980 f:write_link(cl:nspaces_get(true), cl:full_name_get())
986 f:write_br() 981 f:write_br(true)
987 f:write_nl()
988 f:write_raw("> ") 982 f:write_raw("> ")
989 wrote = true 983 wrote = true
990 elseif not newm then 984 elseif not newm then