From db92de38692e5937012c817c9c8c8ef61a86b1ac Mon Sep 17 00:00:00 2001 From: vitya-ne <9317613+vitya-ne@users.noreply.github.com> Date: Wed, 4 Sep 2024 22:25:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D1=80=D1=80=D0=B5=D0=BA=D1=82?= =?UTF-8?q?=D0=B8=D1=80=D1=83=D0=B5=D1=82=20=D0=BE=D0=BF=D1=80=D0=B5=D0=B4?= =?UTF-8?q?=D0=B5=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B4=D0=BB=D0=B8=D0=BD?= =?UTF-8?q?=D0=BD=D0=BE=D0=B3=D0=BE=20=D1=81=D0=BE=D0=B2=D0=B5=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/doc.11tydata.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/doc.11tydata.js b/src/views/doc.11tydata.js index b589c2d7..bc1728a6 100644 --- a/src/views/doc.11tydata.js +++ b/src/views/doc.11tydata.js @@ -151,7 +151,8 @@ module.exports = { const formattedPractices = await Promise.all( filteredPractices.map(async (p) => { const practice = await p.template.inputContent - p['isLong'] = practice.split('\n').length > 2 + + p['isLong'] = practice.split('\n').filter((s) => s.length && s !== '\r').length > 2 return p }), )