@@ -45,7 +45,7 @@ void front(const Document &document, const WritingState &state) {
4545 }
4646
4747 auto odr_css_file = File (
48- Path (state.config ().resource_path ).join (RelPath (" odr.css" )).string ());
48+ AbsPath (state.config ().resource_path ).join (RelPath (" odr.css" )).string ());
4949 odr::HtmlResource odr_css_resource =
5050 html::HtmlResource::create (HtmlResourceType::css, " text/css" , " odr.css" ,
5151 " odr.css" , odr_css_file, true , false , true );
@@ -62,7 +62,7 @@ void front(const Document &document, const WritingState &state) {
6262
6363 if (document.document_type () == DocumentType::spreadsheet) {
6464 auto odr_spreadsheet_css_file =
65- File (Path (state.config ().resource_path )
65+ File (AbsPath (state.config ().resource_path )
6666 .join (RelPath (" odr_spreadsheet.css" ))
6767 .string ());
6868 odr::HtmlResource odr_spreadsheet_css_resource = html::HtmlResource::create (
@@ -122,8 +122,8 @@ void back(const Document &document, const WritingState &state) {
122122 out.write_element_end (" div" );
123123 }
124124
125- auto odr_js_file =
126- File ( Path (state.config ().resource_path ).join (RelPath (" odr.js" )).string ());
125+ auto odr_js_file = File (
126+ AbsPath (state.config ().resource_path ).join (RelPath (" odr.js" )).string ());
127127 odr::HtmlResource odr_js_resource = html::HtmlResource::create (
128128 HtmlResourceType::js, " text/javascript" , " odr.js" , " odr.js" , odr_js_file,
129129 true , false , true );
0 commit comments