-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[new release] printbox (3 packages) (0.7) #24668
Conversation
CHANGES: ## 0.7 - move to 4.08 as lower bound - `preformatted` text style instead of global setting - PrintBox_html: * Optionally wrap text with the `<pre>` HTML element * Output text consistently as `<span>`, not `<div>` * Use `<details><summary>` for collapsible trees - fix: Tree connectors touching frames (c-cube/printbox#26) ## 0.6.1 - compat with dune 3 ## 0.6 - move text rendering into a new printbox-text library - Changing visuals for hlines and vlines connections, and tree structure using unicode characters for box borders ## 0.5 - reenable mdx for tests - custom classes/attributes for html translation in `PrintBox_html` - add `link` case - examples: add lambda.ml ## 0.4 - remove `<p>` in rendering text to html - add `grid_map_l` and `v_record` - add another test ## 0.3 - improve code readability in text rendering - add `align` and `center` - add basic styling for text (ansi codes/html styles) - add `printbox_unicode` for setting up proper unicode printing - add `grid_l`, `grid_text_l`, and `record` helpers - use a more accurate length estimate for unicode, add test - remove mdx as a test dep - fix rendering bugs related to align right, and padding ## 0.2 - make the box type opaque, with a view function - require OCaml 4.03 - add `PrintBox_text.pp` - expose a few new functions to build boxes - change `Text` type, work on string slices when rendering - automatic testing using dune and mdx - migrate to dune and opam 2 ## 0.1 initial release
damn, there's a test (the |
|
yes, this is my problem. The test naturally belongs to both libraries but this will try to run it with only one of the two. |
Co-authored-by: Marcello Seri <[email protected]>
Some kind of weird breakage of toplevel printers on 5.0?
|
I was perhaps expecting a failure in 5.1, where this happened:
|
Can it be due to |
On Wed, 25 Oct 2023, Marcello Seri wrote:
Can it be due to `topdirs` only being available with `+compiler-libs` in 5.0?
I don't know but this is more of a bug in 5.0 I think? I'm not calling
"topdirs", just `#install_printer` and `#remove_printer`.
|
Thanks for doing the review! Maybe I can help tomorrow.
This is maybe a known issue, or at least related to: realworldocaml/mdx#410 |
Thanks a lot, then I suggest to merge this. The test issue will disappear once we move to test 5.1 and 5.2 |
Allows to print nested boxes, lists, arrays, tables in several formats
CHANGES:
0.7
move to 4.08 as lower bound
preformatted
text style instead of global settingPrintBox_html:
<pre>
HTML element<span>
, not<div>
<details><summary>
for collapsible treesfix: Tree connectors touching frames (Tree connectors touching frames c-cube/printbox#26)
0.6.1
0.6
using unicode characters for box borders
0.5
PrintBox_html
link
case0.4
<p>
in rendering text to htmlgrid_map_l
andv_record
0.3
improve code readability in text rendering
add
align
andcenter
add basic styling for text (ansi codes/html styles)
add
printbox_unicode
for setting up proper unicode printingadd
grid_l
,grid_text_l
, andrecord
helpersuse a more accurate length estimate for unicode, add test
remove mdx as a test dep
fix rendering bugs related to align right, and padding
0.2
make the box type opaque, with a view function
require OCaml 4.03
add
PrintBox_text.pp
expose a few new functions to build boxes
change
Text
type, work on string slices when renderingautomatic testing using dune and mdx
migrate to dune and opam 2
0.1
initial release