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.dataset.type = type;
|
||||
for (const segment of term) {
|
||||
if (!segment.text.trim()) { continue; }
|
||||
if (!segment.reading.trim()) {
|
||||
if (segment.reading.trim().length === 0) {
|
||||
this._addSegmentText(segment.text, termNode);
|
||||
} else {
|
||||
termNode.appendChild(this._createSegment(segment));
|
||||
|
@ -190,6 +190,7 @@ h2 {
|
||||
#query-parser-content {
|
||||
margin-top: 0.5em;
|
||||
font-size: 2em;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
#query-parser-content[data-term-spacing=true] .query-parser-term {
|
||||
|
Loading…
Reference in New Issue
Block a user