Commit 2855d0a 1 parent c6aeb5e commit 2855d0a Copy full SHA for 2855d0a
File tree 4 files changed +33
-12
lines changed
4 files changed +33
-12
lines changed Original file line number Diff line number Diff line change @@ -4805,9 +4805,11 @@ sub generate_report { # {{{1
4805
4805
if ($BY_FILE) {
4806
4806
$clean_lang_or_file = rm_leading_tempdir($lang_or_file, \%TEMP_DIR);
4807
4807
$clean_lang_or_file = xml_metachars($clean_lang_or_file) if $out_style eq "xml";
4808
- if ($out_style eq "json" or $out_style eq " yaml") {
4809
- # YAML, JSON do not allow protected characters in keys
4808
+ if ($out_style eq "yaml") {
4809
+ # YAML does not allow protected single quotes in keys
4810
4810
$clean_lang_or_file =~ s/'/0x27/g;
4811
+ } elsif ($out_style eq "json") {
4812
+ # JSON does not allow protected double quotes in keys
4811
4813
$clean_lang_or_file =~ s/"/0x2b/g;
4812
4814
} elsif ($out_style ne "txt") {
4813
4815
# text output is allowed to keep its quotes as they are
Original file line number Diff line number Diff line change @@ -4797,9 +4797,11 @@ sub generate_report { # {{{1
4797
4797
if ($BY_FILE) {
4798
4798
$clean_lang_or_file = rm_leading_tempdir($lang_or_file, \%TEMP_DIR);
4799
4799
$clean_lang_or_file = xml_metachars($clean_lang_or_file) if $out_style eq "xml";
4800
- if ($out_style eq "json" or $out_style eq " yaml") {
4801
- # YAML, JSON do not allow protected characters in keys
4800
+ if ($out_style eq "yaml") {
4801
+ # YAML does not allow protected single quotes in keys
4802
4802
$clean_lang_or_file =~ s/'/0x27/g;
4803
+ } elsif ($out_style eq "json") {
4804
+ # JSON does not allow protected double quotes in keys
4803
4805
$clean_lang_or_file =~ s/"/0x2b/g;
4804
4806
} elsif ($out_style ne "txt") {
4805
4807
# text output is allowed to keep its quotes as they are
Original file line number Diff line number Diff line change
1
+ ---
2
+ id : 5dc174fcf86c76b9248c6eb3
3
+ title : Step 3
4
+ challengeType : 0
5
+ dashedName : step-2
6
+ demoType : onLoad ---
7
+
8
+ # --description--
9
+
10
+ In this workshop, you will learn how to work with basic HTML elements like
11
+ headings.
12
+
Original file line number Diff line number Diff line change 3
3
header :
4
4
cloc_url : github.com/AlDanial/cloc
5
5
cloc_version : 2.05
6
- elapsed_seconds : 0.00426006317138672
7
- n_files : 2
8
- n_lines : 24
9
- files_per_second : 469.476606223416
10
- lines_per_second : 5633.71927468099
6
+ elapsed_seconds : 0.00424814224243164
7
+ n_files : 3
8
+ n_lines : 36
9
+ files_per_second : 706.191042765743
10
+ lines_per_second : 8474.29251318891
11
11
report_file : ../../../outputs/issues/898/results.yaml
12
+ ' ./irregular"file2.md' :
13
+ blank : 3
14
+ comment : 0
15
+ code : 9
16
+ language : Markdown
12
17
' ./irregular0x27file.md' :
13
18
blank : 3
14
19
comment : 0
@@ -20,7 +25,7 @@ header :
20
25
code : 9
21
26
language : Markdown
22
27
SUM :
23
- blank : 6
28
+ blank : 9
24
29
comment : 0
25
- code : 18
26
- nFiles : 2
30
+ code : 27
31
+ nFiles : 3
You can’t perform that action at this time.
0 commit comments