--- parser3/src/main/pa_common.C 2001/04/03 06:23:05 1.36 +++ parser3/src/main/pa_common.C 2001/04/03 07:54:25 1.38 @@ -6,7 +6,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_common.C,v 1.36 2001/04/03 06:23:05 paf Exp $ + $Id: pa_common.C,v 1.38 2001/04/03 07:54:25 paf Exp $ */ #include "pa_config_includes.h" @@ -94,6 +94,7 @@ bool file_read(Pool& pool, const String& return false; } +/// @test mkdirs void file_write(Pool& pool, const String& file_spec, const void *data, size_t size, @@ -182,6 +183,7 @@ char *rsplit(char *string, char delim) { return NULL; } +/// @todo less stupid type detection char *format(Pool& pool, double value, char *fmt) { char *result=(char *)pool.malloc(MAX_NUMBER); if(fmt) @@ -259,7 +261,8 @@ static void append_attribute_subattribut // ...; charset=windows1251 String *string=static_cast(info); - string->APPEND_CONST("; "); + if(string->size()) + string->APPEND_CONST("; "); string->append(akey, String::UL_HEADER, true); string->APPEND_CONST("="); string->append(static_cast(avalue)->as_string(),