Skip to content

Commit f46a737

Browse files
committed
set line numbers to word-break: normal to fix rubychan#102
1 parent 3aa890c commit f46a737

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Changes.textile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ h2. Changes in 1.1
1313
* Display line numbers in HTML @:table@ mode even for single-line code (remove special case) [#41, thanks to Ariejan de Vroom]
1414
* Add .xaml file type [#121, thanks to Kozman Bálint]
1515
* @CodeRay::TokenKinds@ should not be frozen [#130, thanks to Gavin Kistner]
16+
* Override Bootstrap's pre word-break setting for line numbers [#102, thanks to lightswitch05]
1617

1718
h2. Changes in 1.0.9
1819

lib/coderay/styles/alpha.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ class Alpha < Style
3939
color: gray !important;
4040
text-decoration: none !important;
4141
}
42+
.CodeRay .line-numbers pre {
43+
word-break: normal;
44+
}
4245
.CodeRay .line-numbers a:target { color: blue !important; }
4346
.CodeRay .line-numbers .highlighted { color: red !important; }
4447
.CodeRay .line-numbers .highlighted a { color: red !important; }

0 commit comments

Comments
 (0)