Skip to content

Commit 2bc434b

Browse files
authored
Report ToC: Expand on whitespace escaping (#10646)
1 parent c9abc65 commit 2bc434b

8 files changed

+8
-8
lines changed

dojo/templates/dojo/custom_html_toc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h1 id="table_of_contents">{{ heading }}</h1>
4040

4141
level = parseInt(openLevel);
4242

43-
var anchor = titleText.trim().replace(/ /g, "_");
43+
var anchor = titleText.trim().replace(/\s/g, "_");
4444

4545
if(tags)
4646
{

dojo/templates/dojo/endpoint_pdf_report.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ <h6>Notes</h6>
378378

379379
level = parseInt(openLevel);
380380

381-
var anchor = titleText.trim().replace(/ /g, "_");
381+
var anchor = titleText.trim().replace(/\s/g, "_");
382382

383383
if(tags)
384384
{

dojo/templates/dojo/engagement_pdf_report.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ <h6>Notes</h6>
528528

529529
level = parseInt(openLevel);
530530

531-
var anchor = titleText.trim().replace(/ /g, "_");
531+
var anchor = titleText.trim().replace(/\s/g, "_");
532532

533533
if(tags)
534534
{

dojo/templates/dojo/finding_pdf_report.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ <h6>Notes</h6>
358358

359359
level = parseInt(openLevel);
360360

361-
var anchor = titleText.trim().replace(/ /g, "_");
361+
var anchor = titleText.trim().replace(/\s/g, "_");
362362

363363
if(tags)
364364
{

dojo/templates/dojo/product_endpoint_pdf_report.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ <h6>Notes</h6>
506506

507507
level = parseInt(openLevel);
508508

509-
var anchor = titleText.trim().replace(/ /g, "_");
509+
var anchor = titleText.trim().replace(/\s/g, "_");
510510

511511
if(tags)
512512
{

dojo/templates/dojo/product_pdf_report.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ <h6>Notes</h6>
524524

525525
level = parseInt(openLevel);
526526

527-
var anchor = titleText.trim().replace(/ /g, "_");
527+
var anchor = titleText.trim().replace(/\s/g, "_");
528528

529529
if(tags)
530530
{

dojo/templates/dojo/product_type_pdf_report.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ <h6>Notes</h6>
408408

409409
level = parseInt(openLevel);
410410

411-
var anchor = titleText.trim().replace(/ /g, "_");
411+
var anchor = titleText.trim().replace(/\s/g, "_");
412412

413413
if(tags)
414414
{

dojo/templates/dojo/test_pdf_report.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ <h6>Notes</h6>
543543

544544
level = parseInt(openLevel);
545545

546-
var anchor = titleText.trim().replace(/ /g, "_");
546+
var anchor = titleText.trim().replace(/\s/g, "_");
547547

548548
if(tags)
549549
{

0 commit comments

Comments
 (0)