From f46a737548583a6cf12cf188bd24f89caa54fde7 Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Tue, 11 Jun 2013 01:09:48 +0200 Subject: set line numbers to word-break: normal to fix #102 --- Changes.textile | 1 + lib/coderay/styles/alpha.rb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Changes.textile b/Changes.textile index f621de0..5ed0923 100644 --- a/Changes.textile +++ b/Changes.textile @@ -13,6 +13,7 @@ h2. Changes in 1.1 * Display line numbers in HTML @:table@ mode even for single-line code (remove special case) [#41, thanks to Ariejan de Vroom] * Add .xaml file type [#121, thanks to Kozman Bálint] * @CodeRay::TokenKinds@ should not be frozen [#130, thanks to Gavin Kistner] +* Override Bootstrap's pre word-break setting for line numbers [#102, thanks to lightswitch05] h2. Changes in 1.0.9 diff --git a/lib/coderay/styles/alpha.rb b/lib/coderay/styles/alpha.rb index 1f073b6..81bbe3b 100644 --- a/lib/coderay/styles/alpha.rb +++ b/lib/coderay/styles/alpha.rb @@ -39,6 +39,9 @@ table.CodeRay td { padding: 2px 4px; vertical-align: top; } color: gray !important; text-decoration: none !important; } +.CodeRay .line-numbers pre { + word-break: normal; +} .CodeRay .line-numbers a:target { color: blue !important; } .CodeRay .line-numbers .highlighted { color: red !important; } .CodeRay .line-numbers .highlighted a { color: red !important; } -- cgit v1.2.1