Jump to content

Display an outline as a nested table: Difference between revisions

m
Line 739:
function processtable(txt)
df = DataFrame()
nums = Int[]
indents = Int[]
linetext = String[]
Line 747 ⟶ 746:
push!(linetext, String(line[n:end]))
push!(indents, n - 1)
push!(nums, i)
end
end
len = length(numsindents)
divisor = gcd(indents)
indents .= div.(indents, divisor)
4,108

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.