link-grammar-5.8.0/link-grammar/dict-common/print-dict.c
/* Check for an existing newline before issuing "\n" in order to prevent
 * empty lines when printing connector macros. This allows to use the
 * same print_expression_tag_*() function for printing expressions
 * with macros and also disjunct connectors with macros. */
Check for an existing newline before issuing "\n" in order to prevent
empty lines when printing connector macros. This allows to use the
same print_expression_tag_*() function for printing expressions
with macros and also disjunct connectors with macros.
Check for an existing newline before issuing " \ n " in order to prevent empty lines when printing connector macros . This allows to use the same print_expression_tag_ * () function for printing expressions with macros and also disjunct connectors with macros .
static void dyn_ensure_empty_line(dyn_str *e)
{
	if (dyn_strlen(e) > 0)
	{
		dyn_trimback(e);
		if ((dyn_str_value(e)[dyn_strlen(e)-1]) != '\n')
			dyn_strcat(e, "\n");
	}
}
static void dyn_ensure_empty_line ( dyn_str * e ) { if ( dyn_strlen ( e ) > 0 ) { dyn_trimback ( e ) ; if ( ( dyn_str_value ( e ) [ dyn_strlen ( e ) - 1 ] ) != ' \n ' ) dyn_strcat ( e , " \n " ) ; } }
Check for an existing newline before issuing "\n" in order to prevent
 empty lines when printing connector macros.
Check for an existing newline before issuing " \ n " in order to prevent empty lines when printing connector macros .