﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2205	Documentation generator needs to handle <head> and <body> sections correctly	Dietmar Winkler	Martin Sjölund	"I noticed a small problem with the documentation generation script `GenerateDoc.mos`:

If a model contains already a `<head> ... </head>` and/or `<body> ... </body>` section in the info layer then the resulting HTML will contain two of them. It seems that two head sections are not such a big problem but tidy does not like to have content after the `</body>` tag. 

Now the one file that is almost always going to cause this problem is the `ModelicaLicense2` class because the template has exactly this structure. Funnily enough in `Modelica.UsersGuide.ModelicaLicense2` the `<body>` tags have been removed which means no warnings in from tidy. 

Solution could look like something like this:
 * look for `<head> ... </head>` and if more than one then merge the content into one. At the same time only keep one `<title>` (otherwise there will be a warning again)
 * look for `<body>`, keep first instance and discard all following.
 * look for `</body>`, keep only the ''last'' instance"	defect	new	normal	Future	Build Environment	trunk			Dietmar Winkler
