Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006310OCamlOCamldocpublic2014-01-28 12:112014-01-28 15:43
Reporteravsm 
Assigned Toguesdon 
PrioritylowSeveritytweakReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version4.01.0 
Target VersionFixed in Version4.02.0+dev 
Summary0006310: ocamldoc super/subscript style is an unreadable 4 pixels
DescriptionThe superscript and subscript classes for ocamldoc are set to 4 pixels, which essentially makes them invisible on a modern browser. For example, the "Random.int" documentation appears to state that the bound should be from 0 to 2 here: http://caml.inria.fr/pub/docs/manual-ocaml/libref/Random.html [^]

The below diff tweaks it to a more reasonable size:

diff --git a/ocamldoc/generators/odoc_literate.ml b/ocamldoc/generators/odoc_literate.ml
index 6a1e078..38545f9 100644
--- a/ocamldoc/generators/odoc_literate.ml
+++ b/ocamldoc/generators/odoc_literate.ml
@@ -127,8 +127,8 @@ class html =
           "a:active {color : Red; text-decoration : underline; }" ;
           ".keyword { font-weight : bold ; color : Red }" ;
           ".keywordsign { color : #C04600 }" ;
- ".superscript { font-size : 4 }" ;
- ".subscript { font-size : 4 }" ;
+ ".superscript { font-size : 0.6em }" ;
+ ".subscript { font-size : 0.6em }" ;
           ".comment { color : Green }" ;
           ".constructor { color : Blue }" ;
           ".type { color : #5C6585 }" ;
Tagspatch
Attached Files

- Relationships

-  Notes
(0010854)
gasche (developer)
2014-01-28 15:43

Thanks, applied in trunk.

- Issue History
Date Modified Username Field Change
2014-01-28 12:11 avsm New Issue
2014-01-28 12:11 avsm Status new => assigned
2014-01-28 12:11 avsm Assigned To => guesdon
2014-01-28 12:12 avsm Tag Attached: patch
2014-01-28 15:43 gasche Note Added: 0010854
2014-01-28 15:43 gasche Status assigned => resolved
2014-01-28 15:43 gasche Fixed in Version => 4.02.0+dev
2014-01-28 15:43 gasche Resolution open => fixed


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker