Browse Source

+ Patch from Vincent Snijders to fix character set indication

git-svn-id: trunk@127 -
michael 20 years ago
parent
commit
f7be00d080

+ 1 - 1
utils/fpdoc/dw_html.pp

@@ -548,7 +548,7 @@ begin
   El := Doc.CreateElement('meta');
   El := Doc.CreateElement('meta');
   HeadEl.AppendChild(El);
   HeadEl.AppendChild(El);
   El['http-equiv'] := 'Content-Type';
   El['http-equiv'] := 'Content-Type';
-  El['content'] := 'text/html; charset=iso8859-1';
+  El['content'] := 'text/html; charset=iso-8859-1';
   TitleElement := Doc.CreateElement('title');
   TitleElement := Doc.CreateElement('title');
   HeadEl.AppendChild(TitleElement);
   HeadEl.AppendChild(TitleElement);
   El := Doc.CreateElement('link');
   El := Doc.CreateElement('link');

+ 1 - 1
utils/fpdoc/fpde/frmmain.pp

@@ -464,7 +464,7 @@ end;
 Procedure TMainForm.FileNewClick(Sender : TFPGtkObject; Data : Pointer);
 Procedure TMainForm.FileNewClick(Sender : TFPGtkObject; Data : Pointer);
 
 
 Const
 Const
-  template = '<?xml version="1.0" encoding="ISO8859-1"?>'+LineEnding+
+  template = '<?xml version="1.0" encoding="ISO-8859-1"?>'+LineEnding+
              '<fpdoc-descriptions>'+LineEnding+
              '<fpdoc-descriptions>'+LineEnding+
              '</fpdoc-descriptions>'+LineEnding;
              '</fpdoc-descriptions>'+LineEnding;
 
 

+ 1 - 1
utils/fpdoc/fpde/pgeditor.pp

@@ -379,7 +379,7 @@ end;
 Function TElementeditor.TestSave(S : String) : Boolean;
 Function TElementeditor.TestSave(S : String) : Boolean;
 
 
 Const
 Const
-  Head = '<?xml version="1.0" encoding="ISO8859-1"?><fpdoc-descriptions>';
+  Head = '<?xml version="1.0" encoding="ISO-8859-1"?><fpdoc-descriptions>';
   Tail = '</fpdoc-descriptions>';
   Tail = '</fpdoc-descriptions>';
   SErrorSaving = 'There is an error in the documentation nodes:'+LineEnding+
   SErrorSaving = 'There is an error in the documentation nodes:'+LineEnding+
                  '%s'+LineEnding+
                  '%s'+LineEnding+

+ 1 - 1
utils/fpdoc/makeskel.pp

@@ -329,7 +329,7 @@ begin
     Assign(f, OutputName);
     Assign(f, OutputName);
     Rewrite(f);
     Rewrite(f);
 
 
-    WriteLn(f, '<?xml version="1.0" encoding="ISO8859-1"?>');
+    WriteLn(f, '<?xml version="1.0" encoding="ISO-8859-1"?>');
     WriteLn(f, '<fpdoc-descriptions>');
     WriteLn(f, '<fpdoc-descriptions>');
     WriteLn(f, '<package name="', PackageName, '">');
     WriteLn(f, '<package name="', PackageName, '">');