prettier DSN

This commit is contained in:
dickelbeck 2008-08-05 15:48:30 +00:00
parent 23b579cfc9
commit dfce81f4d9
1 changed files with 10 additions and 4 deletions

View File

@ -2631,19 +2631,25 @@ public:
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IOError )
{
const char* quote = out->GetQuoteChar( net_id.c_str() );
const char* space = " ";
out->Print( nestLevel, "(%s %s%s%s", LEXER::GetTokenText( Type() ),
quote, net_id.c_str(), quote );
if( unassigned )
out->Print( 0, "(unassigned)" );
{
out->Print( 0, "%s(unassigned)", space );
space = ""; // only needed one space
}
if( net_number != T_NONE )
out->Print( 0, "(net_number %d)", net_number );
{
out->Print( 0, "%s(net_number %d)", space, net_number );
// space = "";
}
out->Print( 0, "\n" );
const int RIGHTMARGIN = 80;
int perLine = out->Print( nestLevel+1, "(%s", LEXER::GetTokenText( pins_type ) );