From 99392b67657fbd3b4edf653aba09629697aa121d Mon Sep 17 00:00:00 2001 From: Markus Palme Date: Tue, 11 Oct 2005 14:12:22 +0000 Subject: [PATCH] ported patch from fidalgo rev 2097 git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@557 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../TextEditor/Gui/Dialogs/ExportProjectToHtmlDialog.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Main/Base/Project/Src/TextEditor/Gui/Dialogs/ExportProjectToHtmlDialog.cs b/src/Main/Base/Project/Src/TextEditor/Gui/Dialogs/ExportProjectToHtmlDialog.cs index e1fd53e470..e4cfe19c00 100644 --- a/src/Main/Base/Project/Src/TextEditor/Gui/Dialogs/ExportProjectToHtmlDialog.cs +++ b/src/Main/Base/Project/Src/TextEditor/Gui/Dialogs/ExportProjectToHtmlDialog.cs @@ -178,7 +178,14 @@ // // string ExportFile(string fileName, string targetPath) // { -// string targetFile = FileUtility.AbsoluteToRelativePath(project.BaseDirectory, fileName).Substring(2).Replace(Path.DirectorySeparatorChar.ToString(), "") + ".html"; +// string targetFile; +// if (fileName.EndsWith(".txt")) +// { +// targetFile = fileUtilityService.AbsoluteToRelativePath(project.BaseDirectory, fileName).Substring(2); +// File.Copy(fileName, targetPath + Path.DirectorySeparatorChar + targetFile); +// return targetFile; +// } +// targetFile = FileUtility.AbsoluteToRelativePath(project.BaseDirectory, fileName).Substring(2).Replace(Path.DirectorySeparatorChar.ToString(), "") + ".html"; // // IDocument document = new DocumentFactory().CreateDocument(); // document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategyForFile(fileName);