From 24546e1eb92b734746ea6efacf34cad717688b2c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Bernigaud?= <come.bernigaud@laposte.net>
Date: Mon, 6 May 2013 14:28:36 +0200
Subject: [PATCH] Fixes: #2368 Only replacing keyword at beginning of new lines
 now.

---
 bin/schema2ldif | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/schema2ldif b/bin/schema2ldif
index 397cc1d..7690548 100755
--- a/bin/schema2ldif
+++ b/bin/schema2ldif
@@ -68,9 +68,9 @@ while (<>) {
 #     objectIdentifier -> olcObjectIdentifier:
 #     objectClass -> olcObjectClasses:
 #     attributeType -> olcAttributeTypes:
-  s/objectidentifier/olcObjectIdentifier:/i;
-  s/attributetype/olcAttributeTypes:/i;
-  s/objectclass/olcObjectClasses:/i;
+  s/^objectidentifier/olcObjectIdentifier:/i;
+  s/^attributetype/olcAttributeTypes:/i;
+  s/^objectclass/olcObjectClasses:/i;
 
 # [openldap.ldif]
 #   Then leading whitespace must be fixed. The slapd.conf format allows
-- 
GitLab