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