Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-tweak.git;a=commitdiff;h=111d60e62be1ad0478c92a7a5a3ad9861dd76fe8

commit 111d60e62be1ad0478c92a7a5a3ad9861dd76fe8
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Sun Sep 5 17:56:58 2010 +0200

*fixes read file with \ end line

diff --git a/frugal-mono-tools/OUTILS/Outils.cs 
b/frugal-mono-tools/OUTILS/Outils.cs
index eafaae8..f8af9c7 100644
--- a/frugal-mono-tools/OUTILS/Outils.cs
+++ b/frugal-mono-tools/OUTILS/Outils.cs
@@ -126,6 +126,7 @@ namespace frugalmonotools
string fileContents = textFile.ReadToEnd();
textFile.Close();
fileContents = fileContents.Replace("\n\n", "\n");
+                               fileContents = fileContents.Replace("\\\n", "");
return fileContents;
}
catch
diff --git a/frugal-mono-tools/Service.cs b/frugal-mono-tools/Service.cs
index 9ad74ca..b089aa0 100644
--- a/frugal-mono-tools/Service.cs
+++ b/frugal-mono-tools/Service.cs
@@ -41,7 +41,6 @@ namespace frugalmonotools
if (line.IndexOf("description:")>0)
{
if (Debug.ModeDebug) Console.WriteLine(line);
-                                       //FIX ME don't ignore \ for a line
return line.Replace("# description: ","");
}
}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to