From 8284c66da20b7bd1a0bfbe3bf7512f4509b8948a Mon Sep 17 00:00:00 2001 From: John Date: Thu, 25 Oct 2012 18:48:42 +0000 Subject: [PATCH] added code to put a copyright notice in each format file added code to put a copyright notice in each genmac file --- PROMS/fmtxml/EntireFormat.cs | 2 ++ PROMS/fmtxml/RtfToSvg.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/PROMS/fmtxml/EntireFormat.cs b/PROMS/fmtxml/EntireFormat.cs index bb753e72..1ead88b1 100644 --- a/PROMS/fmtxml/EntireFormat.cs +++ b/PROMS/fmtxml/EntireFormat.cs @@ -13,7 +13,9 @@ namespace fmtxml { MyPath = path; XmlDocument xmldoc = new XmlDocument(); + XmlComment copyright = xmldoc.CreateComment("Proprietary Information - Copyright 2012 - Volian Enterprises, Inc. All rights reserved."); XmlElement top = xmldoc.CreateElement("PlantFormat"); + xmldoc.AppendChild(copyright); xmldoc.AppendChild(top); try { diff --git a/PROMS/fmtxml/RtfToSvg.cs b/PROMS/fmtxml/RtfToSvg.cs index d04f4766..874c90a2 100644 --- a/PROMS/fmtxml/RtfToSvg.cs +++ b/PROMS/fmtxml/RtfToSvg.cs @@ -161,6 +161,7 @@ namespace fmtxml private static bool AddSvgPrefix(FileInfo file, StringBuilder sb, bool svg) { sb.Append("\r\n"); + sb.Append("\r\n"); sb.Append("\r\n"); sb.Append(string.Format(" {0}\r\n", file.Name.ToLower().Replace(".rtf", ""))); svg = true;