package textutils_kernel
Text output utilities
Install
Dune Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=793902157823c4112948514201a9e5c05126212b2b8d8b05a3cac786f752aa89
doc/textutils_kernel.text_block/Text_block/Boxed/index.html
Module Text_block.Boxed
Source
Combinators for building up cell structures separated by box characters: e.g.
let a = text "A" in
let b = text "B" in
let c = text "C" in
boxed Boxed.(hcat [vcat [cell a; cell b]; c])
and
let a = text "A" in
let b = text "B" in
let c = text "C" in
boxed Boxed.(hcat [
vcat [cell a; cell b];
c;
vcat [cell b; cell a]
])
produce
┌───┬───┐ ┌───┬───┬───┐ │ A │ │ │ A │ │ B │ ├───┤ C │ and ├───┤ C ├───┤ │ B │ │ │ B │ │ A │ └───┴───┘ └───┴───┴───┘
respectively.
An outlined table cell, possibly with extra space (padding) on the sides.
hpadding
defaults to 1. vpadding
defaults to 0.
Vertical concatenation with inserts horizontal separator lines.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>