@@ -154,7 +154,7 @@ angular.module('oncokbApp')
154
154
$scope . searchHistory = function ( genesForHistory ) {
155
155
$scope . errorMessage = '' ;
156
156
$scope . historySearchResults = [ ] ;
157
- if ( ( ! $scope . dateRangeStartDateStr || ! $scope . dateRange . dateRangeEndDateStr ) &&
157
+ if ( ( ! $scope . dateRangeStartDateStr || ! $scope . dateRangeEndDateStr ) &&
158
158
( ! _ . isArray ( $scope . genesForHistory ) || $scope . genesForHistory . length === 0 ) &&
159
159
$scope . selectedTypeCheckboxes . length === 0 ) {
160
160
$scope . errorMessage = 'Please choose conditions from Gene, Date or Type.' ;
@@ -374,19 +374,25 @@ angular.module('oncokbApp')
374
374
375
375
var content = [ ] ;
376
376
if ( result . gene . length > 0 ) {
377
- content . push ( 'Gene:' ) ;
378
- content = addRecordToFile ( content , result . gene ) ;
379
- content . push ( '' ) ;
377
+ var segments = [ ] ;
378
+ segments . push ( '### Gene\n```' ) ;
379
+ segments = addRecordToFile ( segments , result . gene ) ;
380
+ segments . push ( '```\n' ) ;
381
+ content . push ( segments . join ( '\n' ) ) ;
380
382
}
381
383
if ( result . alteration . length > 0 ) {
382
- content . push ( 'Alteration:' ) ;
383
- content = addRecordToFile ( content , result . alteration ) ;
384
- content . push ( '' ) ;
384
+ var segments = [ ] ;
385
+ segments . push ( '### Alteration\n```' ) ;
386
+ segments = addRecordToFile ( segments , result . alteration ) ;
387
+ segments . push ( '```\n' ) ;
388
+ content . push ( segments . join ( '\n' ) ) ;
385
389
}
386
390
if ( result . evidence . length > 0 ) {
387
- content . push ( 'Evidence:' ) ;
388
- content = addRecordToFile ( content , result . evidence ) ;
389
- content . push ( '' ) ;
391
+ var segments = [ ] ;
392
+ segments . push ( '### Evidence\n```' ) ;
393
+ segments = addRecordToFile ( segments , result . evidence ) ;
394
+ segments . push ( '```\n' ) ;
395
+ content . push ( segments . join ( '\n' ) ) ;
390
396
}
391
397
var blob = new Blob ( [ content . join ( '\n' ) ] , {
392
398
type : 'text/plain;charset=utf-8;'
0 commit comments