tests/test_rptreport_creation
tests/test_report_created*
tests/test_rptprint_mm.rptr
+tests/test_report_newline.rpt
POTFILES
mkinstalldirs
stamp-it
/*
- * Copyright (C) 2006-2007 Andrea Zagli <azagli@inwind.it>
+ * Copyright (C) 2006-2010 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
priv->font = rpt_common_get_font (xnode);
priv->align = rpt_common_get_align (xnode);
- g_object_set (rpt_obj_text, "source", xmlGetProp (xnode, "source"), NULL);
+ prop = (gchar *)xmlGetProp (xnode, "source");
+ g_object_set (rpt_obj_text, "source", prop, NULL);
prop = (gchar *)xmlGetProp (xnode, "background-color");
if (prop != NULL)
yy_scan_string (source);
yyparse (rpt_report, row, &ret);
+ if (g_strstr_len (ret, -1, " ") != NULL)
+ {
+ ret = g_strjoinv ("\n", g_strsplit (ret, " ", -1));
+ }
+
if (ret == NULL)
{
xmlNodeSetContent (xnode, "");