diff options
author | B. Watson <yalhcru@gmail.com> | 2021-12-10 13:52:53 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-12-14 00:01:10 +0700 |
commit | 1e7521defbbda2c2691529a87fc06f8f1d328c14 (patch) | |
tree | ae1be2fea198df315860df94ec83f120886c9e93 /development/bless/patches/fix_save_behaviour.patch | |
parent | c4dda0923c4bdadb308b413116ac85b3ba9ed0a0 (diff) | |
download | slackbuilds-1e7521defbbda2c2691529a87fc06f8f1d328c14.tar.gz slackbuilds-1e7521defbbda2c2691529a87fc06f8f1d328c14.tar.xz |
development/bless: Various fixes.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to '')
-rw-r--r-- | development/bless/patches/fix_save_behaviour.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/development/bless/patches/fix_save_behaviour.patch b/development/bless/patches/fix_save_behaviour.patch new file mode 100644 index 0000000000..00f3fcaa0b --- /dev/null +++ b/development/bless/patches/fix_save_behaviour.patch @@ -0,0 +1,36 @@ +diff -Naurd bless-0.6.0.orig/src/tools/Preferences.cs bless-0.6.0/src/tools/Preferences.cs +--- bless-0.6.0.orig/src/tools/Preferences.cs 2008-06-07 14:18:14.000000000 +0200 ++++ bless-0.6.0/src/tools/Preferences.cs 2016-10-28 22:47:50.000000000 +0200 +@@ -127,10 +127,10 @@ + ///</summary> + public void Save(string path) + { +- XmlTextWriter xml = new XmlTextWriter(path, null); +- xml.Formatting = Formatting.Indented; +- xml.Indentation = 1; +- xml.IndentChar = '\t'; ++ XmlWriterSettings settings = new XmlWriterSettings(); ++ settings.Indent = true; ++ settings.IndentChars = ("\t"); ++ XmlWriter xml = XmlWriter.Create(path, settings); + + xml.WriteStartElement(null, "preferences", null); + +diff -Naurd bless-0.6.0.orig/src/tools/Session.cs bless-0.6.0/src/tools/Session.cs +--- bless-0.6.0.orig/src/tools/Session.cs 2008-06-07 14:18:14.000000000 +0200 ++++ bless-0.6.0/src/tools/Session.cs 2017-01-08 15:21:29.000000000 +0100 +@@ -72,10 +72,10 @@ + + public void Save(string path) + { +- XmlTextWriter xml = new XmlTextWriter(path, null); +- xml.Formatting = Formatting.Indented; +- xml.Indentation = 1; +- xml.IndentChar = '\t'; ++ XmlWriterSettings settings = new XmlWriterSettings(); ++ settings.Indent = true; ++ settings.IndentChars = ("\t"); ++ XmlWriter xml = XmlWriter.Create(path, settings); + + xml.WriteStartElement(null, "session", null); + |