Skip to content

Commit edcda1a

Browse files
committed
Stable release 1.0
1 parent 3c709ce commit edcda1a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pwic_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# ===================================================
3838

3939
# Paths
40-
PWIC_VERSION = '1.0-rc8'
40+
PWIC_VERSION = '1.0'
4141
PWIC_DB = './db'
4242
PWIC_DB_SQLITE = PWIC_DB + '/pwic.sqlite'
4343
PWIC_DB_SQLITE_BACKUP = PWIC_DB + '/pwic_%s.sqlite'

templates/page-edit.js.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
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
@@ -194,7 +194,7 @@
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 += '|';

0 commit comments

Comments
 (0)