﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2877	saveTotalSCode with +showAnnotations generates bad file	Adrian Pop	somebody	"Just try {{{omc +showAnnotations}}} on this:
{{{#!mo
loadModel(Modelica); getErrorString();
saveTotalSCode(Modelica.Fluid.Examples.Tanks.ThreeTanks); getErrorString();
}}}

There are several errors:
1. the comment in the last class is placed badly
2. the quotes inside comments are not escaped in some cases

Also, while i'm at it: having top class M and doing saveTotalSCode on it will get you a new top class M extending from the top M which is invalid
Modelica code. We could check if name exists in the top scope and generate an unique one if so.
"	defect	closed	high	1.9.1	Frontend	trunk	fixed		
