Przeglądaj źródła

+ Patch from Vincent Snijders to remove use of NOBR tag

git-svn-id: trunk@128 -
michael 20 lat temu
rodzic
commit
bc223811c3
2 zmienionych plików z 7 dodań i 1 usunięć
  1. 2 1
      utils/fpdoc/dw_html.pp
  2. 5 0
      utils/fpdoc/fpdoc.css

+ 2 - 1
utils/fpdoc/dw_html.pp

@@ -804,7 +804,8 @@ end;
 
 function THTMLWriter.CreateCode(Parent: TDOMNode): THTMLElement;
 begin
-  Result := CreateEl(CreateEl(Parent, 'tt'), 'nobr');
+  Result := CreateEl(CreateEl(Parent, 'tt'), 'span');
+  Result['class'] := 'code';
 end;
 
 function THTMLWriter.CreateWarning(Parent: TDOMNode): THTMLElement;

+ 5 - 0
utils/fpdoc/fpdoc.css

@@ -53,6 +53,11 @@ h3, td.h3 {
   font-size: 12pt
 }
 
+/* source fragments */
+span.code {
+  white-space: nowrap
+}
+
 /* symbols in source fragments */
 span.sym {
   color: darkred