Skip to content

Commit 63d5a6f

Browse files
committed
Add minor improvements to pdf. Fix show without times set to true by default
1 parent 6a8d390 commit 63d5a6f

File tree

4 files changed

+21
-17
lines changed

4 files changed

+21
-17
lines changed

include/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const defaults = {
2929
noHeadlines: false,
3030
noWarnings: false,
3131
quiet: false,
32-
showWithoutTimes: true,
32+
showWithoutTimes: false,
3333
_perPage: 100,
3434
_parallel: 10
3535
};

output/markdown.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class markdown extends Base {
3434
if (this.report.issues.length === 0)
3535
return this.warning('No issues found');
3636

37-
let issues = [this.config.get('issueColumns')];
37+
let issues = [this.config.get('issueColumns').map(c => c.replace('_', ' '))];
3838
this.report.issues.forEach(issue => issues.push(this.prepare(issue, this.config.get('issueColumns'))));
3939

4040
this.write(Table(issues));
@@ -46,7 +46,7 @@ class markdown extends Base {
4646
if (this.report.mergeRequests.length === 0)
4747
return this.warning('No merge requests found');
4848

49-
let mergeRequests = [this.config.get('mergeRequestColumns')];
49+
let mergeRequests = [this.config.get('mergeRequestColumns').map(c => c.replace('_', ' '))];
5050
this.report.mergeRequests.forEach(mergeRequest => mergeRequests.push(this.prepare(mergeRequest, this.config.get('mergeRequestColumns'))));
5151

5252
this.write(Table(mergeRequests));
@@ -55,7 +55,7 @@ class markdown extends Base {
5555
makeRecords() {
5656
this.headline('TIME RECORDS');
5757

58-
let times = [this.config.get('recordColumns')];
58+
let times = [this.config.get('recordColumns').map(c => c.replace('_', ' '))];
5959
this.times.forEach(time => times.push(this.prepare(time, this.config.get('recordColumns'))));
6060

6161
this.write(Table(times));

output/styles/layout/default.css

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ body th {
263263
padding: 0;
264264
}
265265

266+
body td {
267+
word-break: break-all;
268+
}
269+
266270
body h1,
267271
body h2,
268272
body h3,
@@ -389,11 +393,11 @@ body::after {
389393
content: "";
390394
}
391395

392-
body>*:first-child {
396+
body > *:first-child {
393397
margin-top: 0 !important;
394398
}
395399

396-
body>*:last-child {
400+
body > *:last-child {
397401
margin-bottom: 0 !important;
398402
}
399403

@@ -438,11 +442,11 @@ body blockquote {
438442
border-left: 0.25em solid #dfe2e5;
439443
}
440444

441-
body blockquote>:first-child {
445+
body blockquote > :first-child {
442446
margin-top: 0;
443447
}
444448

445-
body blockquote>:last-child {
449+
body blockquote > :last-child {
446450
margin-bottom: 0;
447451
}
448452

@@ -543,11 +547,11 @@ body ol ul {
543547
margin-bottom: 0;
544548
}
545549

546-
body li>p {
550+
body li > p {
547551
margin-top: 16px;
548552
}
549553

550-
body li+li {
554+
body li + li {
551555
margin-top: 0.25em;
552556
}
553557

@@ -606,7 +610,7 @@ body code {
606610
padding-bottom: 0.2em;
607611
margin: 0;
608612
font-size: 85%;
609-
background-color: rgba(27,31,35,0.05);
613+
background-color: rgba(27, 31, 35, 0.05);
610614
border-radius: 3px;
611615
}
612616

@@ -620,7 +624,7 @@ body pre {
620624
word-wrap: normal;
621625
}
622626

623-
body pre>code {
627+
body pre > code {
624628
padding: 0;
625629
margin: 0;
626630
font-size: 100%;
@@ -685,7 +689,7 @@ body kbd {
685689
box-shadow: inset 0 -1px 0 #959da5;
686690
}
687691

688-
body :checked+.radio-label {
692+
body :checked + .radio-label {
689693
position: relative;
690694
z-index: 1;
691695
border-color: #0366d6;
@@ -695,7 +699,7 @@ body .task-list-item {
695699
list-style-type: none;
696700
}
697701

698-
body .task-list-item+.task-list-item {
702+
body .task-list-item + .task-list-item {
699703
margin-top: 3px;
700704
}
701705

output/table.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class table extends Base {
3434
if (this.report.issues.length === 0)
3535
return this.warning('No issues found');
3636

37-
let issues = new Table({head: this.config.get('issueColumns')});
37+
let issues = new Table({head: this.config.get('issueColumns').map(c => c.replace('_', ' '))});
3838
this.report.issues.forEach(issue => issues.push(this.prepare(issue, this.config.get('issueColumns'))));
3939
this.write(issues.toString());
4040
}
@@ -45,14 +45,14 @@ class table extends Base {
4545
if (this.report.mergeRequests.length === 0)
4646
return this.warning('No merge requests found');
4747

48-
let mergeRequests = new Table({head: this.config.get('mergeRequestColumns')});
48+
let mergeRequests = new Table({head: this.config.get('mergeRequestColumns').map(c => c.replace('_', ' '))});
4949
this.report.mergeRequests.forEach(mergeRequest => mergeRequests.push(this.prepare(mergeRequest, this.config.get('mergeRequestColumns'))));
5050
this.write(mergeRequests.toString());
5151
}
5252

5353
makeRecords() {
5454
this.headline('TIME RECORDS');
55-
let times = new Table({head: this.config.get('recordColumns')});
55+
let times = new Table({head: this.config.get('recordColumns').map(c => c.replace('_', ' '))});
5656
this.times.forEach(time => times.push(this.prepare(time, this.config.get('recordColumns'))));
5757
this.write(times.toString());
5858
}

0 commit comments

Comments
 (0)