File tree 3 files changed +9
-9
lines changed
src/librustdoc/html/static/js
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 60
60
removeClass ( document . documentElement , "sans-serif" ) ;
61
61
}
62
62
break ;
63
- case "wrap-source-code" :
63
+ case "word- wrap-source-code" :
64
64
if ( value === true ) {
65
- addClass ( document . documentElement , "wrap-source-code" ) ;
65
+ addClass ( document . documentElement , "word- wrap-source-code" ) ;
66
66
} else {
67
- removeClass ( document . documentElement , "wrap-source-code" ) ;
67
+ removeClass ( document . documentElement , "word- wrap-source-code" ) ;
68
68
}
69
69
break ;
70
70
}
255
255
"default" : false ,
256
256
} ,
257
257
{
258
- "name" : "Wrap source codes " ,
259
- "js_name" : "wrap-source-code" ,
258
+ "name" : "Word wrap source code " ,
259
+ "js_name" : "word- wrap-source-code" ,
260
260
"default" : false ,
261
261
} ,
262
262
] ;
Original file line number Diff line number Diff line change @@ -286,8 +286,8 @@ if (getSettingValue("hide-modnav") === "true") {
286
286
if ( getSettingValue ( "sans-serif-fonts" ) === "true" ) {
287
287
addClass ( document . documentElement , "sans-serif" ) ;
288
288
}
289
- if ( getSettingValue ( "wrap-source-code" ) === "true" ) {
290
- addClass ( document . documentElement , "wrap-source-code" ) ;
289
+ if ( getSettingValue ( "word- wrap-source-code" ) === "true" ) {
290
+ addClass ( document . documentElement , "word- wrap-source-code" ) ;
291
291
}
292
292
function updateSidebarWidth ( ) {
293
293
const desktopSidebarWidth = getSettingValue ( "desktop-sidebar-width" ) ;
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ define-function: (
6
6
"click-code-wrapping",
7
7
[expected],
8
8
block {
9
- click: "#wrap-source-code"
10
- wait-for-local-storage: {"rustdoc-wrap-source-code": |expected|}
9
+ click: "#word- wrap-source-code"
10
+ wait-for-local-storage: {"rustdoc-word- wrap-source-code": |expected|}
11
11
},
12
12
)
13
13
You can’t perform that action at this time.
0 commit comments