File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -194,10 +194,9 @@ pub fn render<T: fmt::Display, S: fmt::Display>(
194
194
. collect:: <String >( ) ,
195
195
suffix=page. resource_suffix,
196
196
extra_scripts=extra_scripts. iter( ) . map( |e| {
197
- format!( "<script src=\" {root_path}{extra_script}{suffix} .js\" ></script>" ,
197
+ format!( "<script src=\" {root_path}{extra_script}.js\" ></script>" ,
198
198
root_path=page. root_path,
199
- extra_script=e,
200
- suffix=page. resource_suffix)
199
+ extra_script=e)
201
200
} ) . collect:: <String >( ) ,
202
201
)
203
202
}
Original file line number Diff line number Diff line change @@ -1375,7 +1375,8 @@ impl<'a> SourceCollector<'a> {
1375
1375
layout:: render ( & mut w, & self . scx . layout ,
1376
1376
& page, & ( "" ) , & Source ( contents) ,
1377
1377
self . scx . css_file_extension . is_some ( ) ,
1378
- & self . scx . themes , & [ "source-files" , "source-script" ] ) ?;
1378
+ & self . scx . themes , & [ "source-files" ,
1379
+ & format ! ( "source-script{}" , page. resource_suffix) ] ) ?;
1379
1380
w. flush ( ) ?;
1380
1381
self . scx . local_sources . insert ( p. clone ( ) , href) ;
1381
1382
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments