Use the new tidyPlatform() in console, and fix (!!) bug where no platform is defined.
This commit is contained in:
parent
2340e63f8b
commit
feb0811ba2
|
@ -864,11 +864,11 @@ static void help(TidyDoc tdoc, /**< The tidy document for which help is showing.
|
||||||
printf( tidyLocalizedString(TC_TXT_HELP_1), get_final_name(prog), tidyLibraryVersion() );
|
printf( tidyLocalizedString(TC_TXT_HELP_1), get_final_name(prog), tidyLibraryVersion() );
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
#ifdef PLATFORM_NAME
|
if ( tidyPlatform() )
|
||||||
temp_string = stringWithFormat( tidyLocalizedString(TC_TXT_HELP_2A), PLATFORM_NAME);
|
temp_string = stringWithFormat( tidyLocalizedString(TC_TXT_HELP_2A), tidyPlatform() );
|
||||||
#else
|
else
|
||||||
title_line = stringWithFormat( tidyLocalizedString(TC_TXT_HELP_2B) );
|
temp_string = stringWithFormat( tidyLocalizedString(TC_TXT_HELP_2B) );
|
||||||
#endif
|
|
||||||
width = width < strlen(temp_string) ? width : strlen(temp_string);
|
width = width < strlen(temp_string) ? width : strlen(temp_string);
|
||||||
printf( "%s\n", temp_string );
|
printf( "%s\n", temp_string );
|
||||||
printf( "%*.*s\n\n", width, width, ul);
|
printf( "%*.*s\n\n", width, width, ul);
|
||||||
|
@ -1576,11 +1576,11 @@ static void exportDefaultOptionValues( TidyDoc tdoc )
|
||||||
*/
|
*/
|
||||||
static void version( TidyDoc tdoc )
|
static void version( TidyDoc tdoc )
|
||||||
{
|
{
|
||||||
#ifdef PLATFORM_NAME
|
if ( tidyPlatform() )
|
||||||
printf( tidyLocalizedString( TC_STRING_VERS_A ), PLATFORM_NAME, tidyLibraryVersion() );
|
printf( tidyLocalizedString( TC_STRING_VERS_A ), tidyPlatform(), tidyLibraryVersion() );
|
||||||
#else
|
else
|
||||||
printf( tidyLocalizedString( TC_STRING_VERS_B ), tidyLibraryVersion() );
|
printf( tidyLocalizedString( TC_STRING_VERS_B ), tidyLibraryVersion() );
|
||||||
#endif
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue