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
Format : flush and tag marker problem #8484
Comments
Comment author: administrator
Thank you for your interesting bug report. The question you asked is
From 1) and 2) we can conclude that no box is opened after evaluation Hence, the behaviour you observed is indeed consistent with the However, I agree with you that what you observed is not completely set_tags true; printf "@{Hello@?@} World@\n";;Hello World
You observe now that the toplevel formatting output is somewhat printf "@{Hello@?@} World@.";;Hello World
In effect, we have (from the doc):
meaning that In conclusion: believe the doc and never use pretty-printing commands Thanks again for helping me to improve the Format module. Pierre Weis INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/ |
Comment author: administrator Unspecified behavior, made more robust by PW 2004-02-11 |
Original bug ID: 2235
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Benjamin Monate
Version: 3.07+2
OS: Linux
Submission from: is002447.saclay.cea.fr (132.166.134.145)
I have a problem with the following code :
open Format
set_tags true; printf "@{Hello@?@} World@\n"
This code outputs : "Hello World" without closing the BOLD tag.
Flushing the formatter seems to reset the formatter stack.
This does not seem to be documented.
Is this an intended behaviour or a bug ?
Thank you for your support
Benjamin
The text was updated successfully, but these errors were encountered: