From 2dc9de0c566a201d49f436fa6831dec403603f2e Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Wed, 9 Jun 2010 20:30:05 -0400 Subject: [PATCH] Added text merge backend for semicolon separated values Feature request #3013910. Added entry for a text merge backend using a semicolon as delimiter. --- src/merge-init.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/merge-init.c b/src/merge-init.c index 550acbb3..f8f02d6f 100644 --- a/src/merge-init.c +++ b/src/merge-init.c @@ -97,6 +97,21 @@ gl_merge_init (void) "line1_has_keys", TRUE, NULL); + gl_merge_register_backend (GL_TYPE_MERGE_TEXT, + "Text/Semicolon", + _("Text: Semicolon separated values"), + GL_MERGE_SRC_IS_FILE, + "delim", ';', + NULL); + + gl_merge_register_backend (GL_TYPE_MERGE_TEXT, + "Text/Semicolon/Line1Keys", + _("Text: Semicolon separated values with keys on line 1"), + GL_MERGE_SRC_IS_FILE, + "delim", ';', + "line1_has_keys", TRUE, + NULL); + #ifdef HAVE_LIBEBOOK gl_merge_register_backend (GL_TYPE_MERGE_EVOLUTION, -- 2.39.5