Skip to content
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

ocamldoc output of preformatted code #5725

Closed
vicuna opened this issue Aug 14, 2012 · 2 comments
Closed

ocamldoc output of preformatted code #5725

vicuna opened this issue Aug 14, 2012 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Aug 14, 2012

Original bug ID: 5725
Reporter: @dbuenzli
Assigned to: @zoggy
Status: closed (set by @zoggy on 2012-08-27T11:44:18Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.00.0
Target version: 4.00.1+dev
Category: ocamldoc
Monitored by: @ygrek @dbuenzli

Bug description

It seems that the output of ocamldoc preformatted code changed it used to be that both

Bla bla bla:
{[The code|}
Bla bla bla:
{[
The code
|}
Bla bla bla

Would put "The code" on a single line but that's no longer the case we now have to write

Bla bla bla :

{|The code|}

Bla bla bla:

{[
The code
|}

Before I have to go in all my interface to introduce the appropriate space. Is that really expected behaviour ?

Thanks,

Daniel

Steps to reproduce

Could not reproduce. I have the code in a separate line without needing a blank line. Maybe a problem with your css file ?

@vicuna
Copy link
Author

vicuna commented Aug 16, 2012

Comment author: @dbuenzli

No it's not my css, I checked with the default style sheet. It seems the problem happens only with -colorize-code. Here are the steps to reproduce :

$ cat a.mli

(** {1 Section}

Everything 
{[is on the same]}
line.

*)

$ ocamldoc -html -colorize-code a.mli

Best,

Daniel

@vicuna
Copy link
Author

vicuna commented Aug 27, 2012

Comment author: @zoggy

Indeed. This is not the expected behaviour. Fixed in branch 4.00 (revision 12884) and trunk (revision 12885).

@vicuna vicuna closed this as completed Aug 27, 2012
@vicuna vicuna added this to the 4.00.1 milestone Mar 14, 2019
@vicuna vicuna added the bug label Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant