Commit dfce81f4 authored by dickelbeck's avatar dickelbeck
Browse files

prettier DSN

parent 23b579cf
Loading
Loading
Loading
Loading
+10 −4
Original line number Original line Diff line number Diff line
@@ -2631,19 +2631,25 @@ public:
    void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IOError )
    void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IOError )
    {
    {
        const char* quote = out->GetQuoteChar( net_id.c_str() );
        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 );
                   quote, net_id.c_str(), quote );


        if( unassigned )
        if( unassigned )
            out->Print( 0, "(unassigned)" );
        {
            out->Print( 0, "%s(unassigned)", space );
            space = "";         // only needed one space
        }


        if( net_number != T_NONE )
        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" );
        out->Print( 0, "\n" );



        const int RIGHTMARGIN = 80;
        const int RIGHTMARGIN = 80;
        int perLine = out->Print( nestLevel+1, "(%s", LEXER::GetTokenText( pins_type ) );
        int perLine = out->Print( nestLevel+1, "(%s", LEXER::GetTokenText( pins_type ) );