[libsigc++2] Protect space after comma in M4 output



commit 33039b7adccfd4c5fc0cd81a257202c4d5e1383f
Author: Daniel Elstner <danielk openismus com>
Date:   Mon Aug 31 14:30:15 2009 +0200

    Protect space after comma in M4 output
    
    * sigc++/macros/template.macros.m4 (_LOOP_SEP): Triple-quote the
    list separator in this hairy construct, since the macro definition
    itself is not quoted at all and the space after the comma got lost
    in the output.  This, in turn, produced overlong lines in the HTML
    reference documentation.

 ChangeLog                        |   10 ++++++++++
 sigc++/macros/template.macros.m4 |    2 +-
 2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3990ee8..9d4855b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2009-08-31  Daniel Elstner  <danielk openismus com>
+
+	Protect space after comma in M4 output
+
+	* sigc++/macros/template.macros.m4 (_LOOP_SEP): Triple-quote the
+	list separator in this hairy construct, since the macro definition
+	itself is not quoted at all and the space after the comma got lost
+	in the output.  This, in turn, produced overlong lines in the HTML
+	reference documentation.
+
 2009-08-28  Daniel Elstner  <danielk openismus com>
 
 	Update news entry for libsigc++ 2.2.4.1 release
diff --git a/sigc++/macros/template.macros.m4 b/sigc++/macros/template.macros.m4
index 72ee30c..964d29d 100644
--- a/sigc++/macros/template.macros.m4
+++ b/sigc++/macros/template.macros.m4
@@ -61,7 +61,7 @@ define([_LOOP],
 
 define([LOOP],
 [pushdef([_LOOP_FORMAT], translit([$1],%, $))dnl
-pushdef([_LOOP_SEP],ifelse([$3],[],[[, ]],[$3]))dnl
+pushdef([_LOOP_SEP],ifelse([$3],[],[[[, ]]],[$3]))dnl
 ifelse(eval($2>0),1,[PROT(_LOOP(1, $2))],[PROT()])dnl
 popdef([_LOOP_SEP])dnl
 popdef([_LOOP_FORMAT])dnl



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]