Blame SOURCES/0197-augeas-trim-spaces-before-key-value.patch

2c83a8
From 53d414c56dde740926aa536899cf62ec34598845 Mon Sep 17 00:00:00 2001
2c83a8
From: Matej Habrnal <mhabrnal@redhat.com>
2c83a8
Date: Fri, 1 Apr 2016 13:11:46 +0200
2c83a8
Subject: [PATCH] augeas: trim spaces before key value
2c83a8
2c83a8
Resolves: rhbz#1236613
2c83a8
2c83a8
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
2c83a8
---
2c83a8
 augeas/libreport.aug      | 2 +-
2c83a8
 augeas/test_libreport.aug | 8 ++++++++
2c83a8
 2 files changed, 9 insertions(+), 1 deletion(-)
2c83a8
2c83a8
diff --git a/augeas/libreport.aug b/augeas/libreport.aug
2c83a8
index 0e1e5e5..7125be2 100644
2c83a8
--- a/augeas/libreport.aug
2c83a8
+++ b/augeas/libreport.aug
2c83a8
@@ -14,7 +14,7 @@ module Libreport =
2c83a8
     let empty = [ del /[ \t]*\n/ "\n" ]
2c83a8
 
2c83a8
     (* Define option *)
2c83a8
-    let option = [ key ident . value_sep . value_to_eol . eol ]
2c83a8
+    let option = [ del /[ \t]*/ "" . key ident . value_sep . value_to_eol . eol ]
2c83a8
 
2c83a8
     (* Define lens *)
2c83a8
     let lns = ( comment | empty | option )*
2c83a8
diff --git a/augeas/test_libreport.aug b/augeas/test_libreport.aug
2c83a8
index b6d319e..116e97c 100644
2c83a8
--- a/augeas/test_libreport.aug
2c83a8
+++ b/augeas/test_libreport.aug
2c83a8
@@ -21,6 +21,10 @@ DontMatchComponents = selinux-policy
2c83a8
 # for more info about these settings see: https://github.com/abrt/abrt/wiki/FAQ#creating-private-bugzilla-tickets
2c83a8
 CreatePrivate= no
2c83a8
 PrivateGroups=private
2c83a8
+ Whitespace = start
2c83a8
+  Whitespace_two=start
2c83a8
+	Whitespace_three =start
2c83a8
+	 Whitespace_four= start
2c83a8
 "
2c83a8
 
2c83a8
     test Libreport.lns get conf =
2c83a8
@@ -45,3 +49,7 @@ PrivateGroups=private
2c83a8
         { "#comment" = "for more info about these settings see: https://github.com/abrt/abrt/wiki/FAQ#creating-private-bugzilla-tickets" }
2c83a8
         { "CreatePrivate" = "no" }
2c83a8
         { "PrivateGroups" = "private" }
2c83a8
+        { "Whitespace" = "start" }
2c83a8
+        { "Whitespace_two" = "start" }
2c83a8
+        { "Whitespace_three" = "start" }
2c83a8
+        { "Whitespace_four" = "start" }
2c83a8
-- 
2c83a8
1.8.3.1
2c83a8