Display an outline as a nested table: Difference between revisions
Display an outline as a nested table (view source)
Revision as of 19:50, 26 October 2019
, 4 years ago→{{header|Julia}}
m (→{{header|zkl}}: tweak) |
|||
Line 739:
function processtable(txt)
df = DataFrame()
indents = Int[]
linetext = String[]
Line 747 ⟶ 746:
push!(linetext, String(line[n:end]))
push!(indents, n - 1)
end
end
len = length(
divisor = gcd(indents)
indents .= div.(indents, divisor)
|