From af27f775c181e55071f3d9ff41eaa7e787a9b170 Mon Sep 17 00:00:00 2001 From: Sushma-stack-hub Date: Tue, 24 Feb 2026 21:54:03 +0530 Subject: [PATCH] fix: add word-wrap support for code snippets in docs - fixes #181 --- extralit/docs/stylesheets/extra.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extralit/docs/stylesheets/extra.css b/extralit/docs/stylesheets/extra.css index 4eb3a59de..99909bf08 100644 --- a/extralit/docs/stylesheets/extra.css +++ b/extralit/docs/stylesheets/extra.css @@ -150,4 +150,12 @@ height: calc(1/var(--iframe-scale-factor) * 650px); transform-origin: left top; } +} + +/* Fix: Add word-wrap support for code snippets in documentation - GSoC 2026 */ +pre, +code { + white-space: pre-wrap; + word-wrap: break-word; + overflow-wrap: break-word; } \ No newline at end of file