gchar *text = NULL, *tmp;
if( ctx->str != NULL )
- text = ctx->str->str;
+ text = g_strstrip(g_strdup(ctx->str->str));
else
text = "";
}
if( ctx->str != NULL ) {
+ g_free(text);
g_string_free(ctx->str, TRUE);
ctx->str = NULL;
}
gchar *text = NULL;
if( ctx->str != NULL )
- text = ctx->str->str;
+ text = g_strstrip(g_strdup(ctx->str->str));
else
text = "";
}
if( ctx->str != NULL ) {
+ g_free(text);
g_string_free(ctx->str, TRUE);
ctx->str = NULL;
}
gchar *text = NULL;
if( ctx->str != NULL )
- text = ctx->str->str;
+ text = g_strstrip(g_strdup(ctx->str->str));
else
text = "";
}
if( ctx->str != NULL ) {
+ g_free(text);
g_string_free(ctx->str, TRUE);
ctx->str = NULL;
}