From dfce81f4d943e12e1609353fdb0cc26f5e61a72e Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Tue, 5 Aug 2008 15:48:30 +0000 Subject: [PATCH] prettier DSN --- pcbnew/specctra.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pcbnew/specctra.h b/pcbnew/specctra.h index 7982a69cbe..11f2a44e93 100644 --- a/pcbnew/specctra.h +++ b/pcbnew/specctra.h @@ -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() ), + 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 ) );