package printbox
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Allows to print nested boxes, lists, arrays, tables in several formats
Install
dune-project
Dependency
Authors
Maintainers
Sources
0.2.tar.gz
md5=d84584a8ebdf3faa7b04704f0f75813c
sha512=fa49c037c7b1aad720a9a4e74fa40838bade84572afb7bcb6dae170c2d4cbdc9c217868ee971049da18dda0308357bbbc8a934436d32f41418eceba612d56ab3
doc/printbox/PrintBox_text/index.html
Module PrintBox_textSource
Render to Text
This module should be used to output boxes directly to a terminal, or another area of monospace text
Set which function is used to compute string length. Typically to be used with a unicode-sensitive length function An example of such function for utf8 encoded strings is the following (it uses the Uutf library):
let string_leng s i len =
Uutf.String.fold_utf_8 ~pos:i ~len (fun n _ _ -> n+1) 0 sNote that this function assumes there is no newline character in the given string.
Returns a string representation of the given structure.
Outputs the given structure on the channel.
Pretty-print the box into this formatter.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page