Skip to content

Commit ac518a3

Browse files
committed
Build with text fix
1 parent 74f57d0 commit ac518a3

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

build/jsroot.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const version_id = 'dev',
1414

1515
/** @summary version date
1616
* @desc Release date in format day/month/year like '14/04/2022' */
17-
version_date = '14/10/2025',
17+
version_date = '21/10/2025',
1818

1919
/** @summary version id and date
2020
* @desc Produced by concatenation of {@link version_id} and {@link version_date}
@@ -14416,24 +14416,24 @@ function drawRawText(dom, txt /* , opt */) {
1441614416
if (!isStr(stxt))
1441714417
stxt = '<undefined>';
1441814418

14419-
const mathjax = this.txt.mathjax || (settings.Latex === constants$1.Latex.AlwaysMathJax);
14420-
14421-
if (!mathjax && !('as_is' in this.txt)) {
14422-
const arr = stxt.split('\n');
14423-
stxt = '';
14424-
for (let i = 0; i < arr.length; ++i)
14425-
stxt += `<pre style='margin:0'>${arr[i]}</pre>`;
14426-
}
14427-
14428-
const frame = this.selectDom();
14419+
const mathjax = this.txt.mathjax || (settings.Latex === constants$1.Latex.AlwaysMathJax),
14420+
frame = this.selectDom();
1442914421
let main = frame.select('div');
1443014422
if (main.empty())
1443114423
main = frame.append('div').attr('style', 'max-width:100%;max-height:100%;overflow:auto');
14432-
main.html(stxt);
14424+
else
14425+
main.html('');
1443314426

1443414427
// (re) set painter to first child element, base painter not requires canvas
1443514428
this.setTopPainter();
1443614429

14430+
if (!mathjax && !('as_is' in this.txt)) {
14431+
const arr = stxt.split('\n');
14432+
for (let i = 0; i < arr.length; ++i)
14433+
main.append('pre').style('margin', '0').text(arr[i]);
14434+
} else
14435+
main.text(stxt);
14436+
1443714437
if (mathjax)
1443814438
typesetMathjax(frame.node());
1443914439

modules/core.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const version_id = 'dev',
66

77
/** @summary version date
88
* @desc Release date in format day/month/year like '14/04/2022' */
9-
version_date = '14/10/2025',
9+
version_date = '21/10/2025',
1010

1111
/** @summary version id and date
1212
* @desc Produced by concatenation of {@link version_id} and {@link version_date}

0 commit comments

Comments
 (0)