if (this.type==DocumentTemplate.types.PLAIN||this.type==DocumentTemplate.types.TXT||this.type==DocumentTemplate.types.HTML)
if (this.content!=null&&(this.type==DocumentTemplate.types.PLAIN||this.type==DocumentTemplate.types.TXT||this.type==DocumentTemplate.types.HTML))
{
{
varreplacedContent="";
varreplacedContent="";
if (this.type==DocumentTemplate.types.PLAIN)
if (this.type==DocumentTemplate.types.PLAIN)
...
@@ -111,7 +111,7 @@ DocumentTemplate.prototype._resolveEmbeddedTemplate = function ()
...
@@ -111,7 +111,7 @@ DocumentTemplate.prototype._resolveEmbeddedTemplate = function ()
// Note: some embedded templates in embedded templates may be replaced, but this is NOT SUPPORTED, as it only works if the second template is not already replaced at that time.
// Note: some embedded templates in embedded templates may be replaced, but this is NOT SUPPORTED, as it only works if the second template is not already replaced at that time.