This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/librustdoc/html/render Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -808,7 +808,7 @@ function handleThemeButtonsBlur(e) {{
808808themePicker.onclick = switchThemeButtonState;
809809themePicker.onblur = handleThemeButtonsBlur;
810810{}.forEach(function(item) {{
811- var but = document.createElement(\ "button\ ");
811+ var but = document.createElement("button");
812812 but.textContent = item;
813813 but.onclick = function(el) {{
814814 switchTheme(currentTheme, mainTheme, item, true);
@@ -1031,11 +1031,11 @@ themePicker.onblur = handleThemeButtonsBlur;
10311031 // with rustdoc running in parallel.
10321032 all_indexes. sort ( ) ;
10331033 {
1034- let mut v = String :: from ( "var searchIndex = JSON.parse(\" { \\ n" ) ;
1034+ let mut v = String :: from ( "var searchIndex = JSON.parse('{ \ \\n " ) ;
10351035 v. push_str ( & all_indexes. join ( ",\\ \n " ) ) ;
10361036 // "addSearchOptions" has to be called first so the crate filtering can be set before the
10371037 // search might start (if it's set into the URL for example).
1038- v. push_str ( "\\ \n }\" );\n addSearchOptions(searchIndex);initSearch(searchIndex);" ) ;
1038+ v. push_str ( "\\ \n }' );\n addSearchOptions(searchIndex);initSearch(searchIndex);" ) ;
10391039 cx. shared . fs . write ( & dst, & v) ?;
10401040 }
10411041 if options. enable_index_page {
You can’t perform that action at this time.
0 commit comments