Update query parser to properly display multi-line content (#1007)
This commit is contained in:
parent
12e6e37785
commit
948605a1fe
@ -24,8 +24,7 @@ class QueryParserGenerator {
|
|||||||
termNode.className = 'query-parser-term';
|
termNode.className = 'query-parser-term';
|
||||||
termNode.dataset.type = type;
|
termNode.dataset.type = type;
|
||||||
for (const segment of term) {
|
for (const segment of term) {
|
||||||
if (!segment.text.trim()) { continue; }
|
if (segment.reading.trim().length === 0) {
|
||||||
if (!segment.reading.trim()) {
|
|
||||||
this._addSegmentText(segment.text, termNode);
|
this._addSegmentText(segment.text, termNode);
|
||||||
} else {
|
} else {
|
||||||
termNode.appendChild(this._createSegment(segment));
|
termNode.appendChild(this._createSegment(segment));
|
||||||
|
@ -190,6 +190,7 @@ h2 {
|
|||||||
#query-parser-content {
|
#query-parser-content {
|
||||||
margin-top: 0.5em;
|
margin-top: 0.5em;
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
#query-parser-content[data-term-spacing=true] .query-parser-term {
|
#query-parser-content[data-term-spacing=true] .query-parser-term {
|
||||||
|
Loading…
Reference in New Issue
Block a user