mirror of
https://github.com/benjaminion/upgrading-ethereum-book.git
synced 2026-01-08 22:17:59 -05:00
Build: trim whitespace from search index
This commit is contained in:
@@ -54,7 +54,7 @@ function getChunks(tree, chunkTypes, exclude) {
|
||||
for (let idx = 0; idx < chunkTypes.length; idx++) {
|
||||
const type = chunkTypes[idx];
|
||||
if (matches(type.query, node)) {
|
||||
const text = getText(node, exclude);
|
||||
const text = getText(node, exclude).trim();
|
||||
if (text !== '') {
|
||||
const tagName = node.tagName.toLowerCase();
|
||||
let id = node.properties?.id;
|
||||
|
||||
Reference in New Issue
Block a user