Skip to content

Commit 3548a34

Browse files
benlubasgithub-actions[bot]
authored andcommitted
chore: autoformat with stylua
1 parent 1783928 commit 3548a34

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lua/neorg/modules/core/export/module.lua

+4-6
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ module.public = {
106106
---used for the export
107107
export_range = function(buffer, start_row, end_row, filetype)
108108
local converter = module.private.get_converter_checked(filetype)
109-
if not converter then return end
109+
if not converter then
110+
return
111+
end
110112
local content = vim.iter(vim.api.nvim_buf_get_lines(buffer, start_row - 1, end_row, false)):join("\n")
111113
local root = ts.get_document_root(content)
112114
if not root then
@@ -202,10 +204,7 @@ module.public = {
202204
table.insert(output, result)
203205
end
204206
elseif exporter == true then
205-
table.insert(
206-
output,
207-
ts.get_node_text(node, source)
208-
)
207+
table.insert(output, ts.get_node_text(node, source))
209208
else
210209
table.insert(output, exporter)
211210
end
@@ -270,7 +269,6 @@ module.private = {
270269

271270
return converter, converter_config
272271
end,
273-
274272
}
275273

276274
---@param event neorg.event

0 commit comments

Comments
 (0)