Skip to content

Commit

Permalink
Switched to tabs for indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitalquark committed Sep 18, 2024
1 parent 2e17f5d commit 6636aa8
Show file tree
Hide file tree
Showing 143 changed files with 6,622 additions and 6,624 deletions.
6 changes: 4 additions & 2 deletions .lua-format
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
column_limit: 100
indent_width: 2
continuation_indent_width: 2
indent_width: 1
use_tab: true
tab_width: 2
continuation_indent_width: 1
align_args: false
align_parameter: false
align_table_field: false
Expand Down
4 changes: 2 additions & 2 deletions docs/fill_layout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
local p = io.popen('markdown -f toc -T ' .. arg[1])
local html = p:read('*a'):match('^.-\n</ul>\n(.+)$')
html = html:gsub('<h(%d) id="([^"]+)"', function(n, id)
id = id:gsub('%p+', '-'):gsub('%-$', ''):lower():gsub('^l%-', '')
return string.format('<h%d id="%s"', n, id)
id = id:gsub('%p+', '-'):gsub('%-$', ''):lower():gsub('^l%-', '')
return string.format('<h%d id="%s"', n, id)
end)
p:close()

Expand Down
Loading

0 comments on commit 6636aa8

Please sign in to comment.