You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 6341 Reporter:@dra27 Assigned to:@zoggy Status: closed (set by @xavierleroy on 2017-09-24T15:32:58Z) Resolution: fixed Priority: normal Severity: minor Version: 4.01.0 Target version: 4.03.0+dev / +beta1 Fixed in version: 4.03.0+dev / +beta1 Category: ocamldoc Related to:#7272
Bug description
ocamldoc adds < br> tags to the ends of lines within {[ ... ]} blocks which has the effect of inserting a blank line between each line of code. The < br> tags are not necessary within the < pre> used for formatting code.
Steps to reproduce
Create the file Broken.mli (with Unix line-endings, or it is compounded by #6340) and run ocamldoc -html -stars -colorize-code Broken.mli
(**
This will be broken by ocamldoc.
It seems unable to cope with DOS line endings.
{[let foo = "bar"
*in
"fu" ^ foo]}
*)
val foo : unit
Additional information
Relevant output of ocamldoc 4.01.0. All the < br> tags are unnecessary (and mangle the visual output):
Original bug ID: 6341
Reporter: @dra27
Assigned to: @zoggy
Status: closed (set by @xavierleroy on 2017-09-24T15:32:58Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.01.0
Target version: 4.03.0+dev / +beta1
Fixed in version: 4.03.0+dev / +beta1
Category: ocamldoc
Related to: #7272
Bug description
ocamldoc adds < br> tags to the ends of lines within {[ ... ]} blocks which has the effect of inserting a blank line between each line of code. The < br> tags are not necessary within the < pre> used for formatting code.
Steps to reproduce
Create the file Broken.mli (with Unix line-endings, or it is compounded by #6340) and run ocamldoc -html -stars -colorize-code Broken.mli
(**
*in
*)
val foo : unit
Additional information
Relevant output of ocamldoc 4.01.0. All the < br> tags are unnecessary (and mangle the visual output):
< pre class="codepre">< code class="code">< span class="keyword">let< /span> foo = < span class="string">"bar"< /span>< br>
< span class="keyword">in< /span>< br>
< span class="string">"fu"< /span> ^ foo< /code>< /pre>< br>
There are lots of other instances of < br> being added where it shouldn't (e.g. just before < /div> in the member lists).
The text was updated successfully, but these errors were encountered: