We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7cbb22 commit 717bb80Copy full SHA for 717bb80
1 file changed
lua/orgmode/babel/tangle.lua
@@ -155,12 +155,14 @@ function Tangle:tangle()
155
local mode_str = block['mode']
156
local mode = nil
157
158
- if mode_str and mode_str:sub(1, 1) == 'o' then
159
- mode = tonumber(mode_str:sub(2), 8)
160
- elseif mode_str then
161
- mode = chmod_style_to_octal(mode_str)
162
- if mode == nil then
163
- mode = ls_style_to_octal(mode_str)
+ if mode_str then
+ if mode_str:sub(1, 1) == 'o' then
+ mode = tonumber(mode_str:sub(2), 8)
+ else
+ mode = chmod_style_to_octal(mode_str)
+ if mode == nil then
164
+ mode = ls_style_to_octal(mode_str)
165
+ end
166
end
167
168
0 commit comments