File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737# ===================================================
3838
3939# Paths
40- PWIC_VERSION = '1.0-rc8 '
40+ PWIC_VERSION = '1.0'
4141PWIC_DB = './db'
4242PWIC_DB_SQLITE = PWIC_DB + '/pwic.sqlite'
4343PWIC_DB_SQLITE_BACKUP = PWIC_DB + '/pwic_%s.sqlite'
Original file line number Diff line number Diff line change 181181 {
182182 if ( nlens . length <= j )
183183 nlens . push ( 0 ) ;
184- nlens [ j ] = Math . max ( nlens [ j ] , cols [ j ] . length ) ;
184+ nlens [ j ] = Math . max ( nlens [ j ] , cols [ j ] . trim ( ) . length ) ;
185185 }
186186 }
187187 nice = ( nlens . reduce ( ( a , b ) => a + b , 0 ) <= 128 ) ; // To shorten large tables
194194 cols = lines [ i ] . split ( '\t' ) ;
195195 for ( j = 0 ; j < ncols ; j ++ )
196196 {
197- txt = ( j < cols . length ? cols [ j ] : '' ) ;
197+ txt = ( j < cols . length ? cols [ j ] : '' ) . trim ( ) ;
198198 buffer += '| ' + txt + ' ' . repeat ( ( nice ? nlens [ j ] - txt . length : 0 ) + 1 ) ;
199199 }
200200 buffer += '|' ;
You can’t perform that action at this time.
0 commit comments