aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2016-10-07 14:54:42 +0200
committerSimon Sapin <simon.sapin@exyr.org>2016-10-07 14:58:54 +0200
commitea97e9850b7388b9bd7d43cfaedddfa06af395ff (patch)
tree77514503c24214abe5997f37ff08db1a54eedde3
parente23959a7618e8e7b7ca20300a2afeb1ac77712f3 (diff)
downloadservo-ea97e9850b7388b9bd7d43cfaedddfa06af395ff.tar.gz
servo-ea97e9850b7388b9bd7d43cfaedddfa06af395ff.zip
Blind attempt to fix #13626
The error message was: ``` error: unknown character escape: d --> C:\projects\servo\target\debug\build\style-9b556a6c7bb4f044\out/properties.rs:44:55 | 44 | #[path="C:/projects/servo/components/style/properties\declaration_block.rs"] | ``` Use `repr()` to get a Python string literal (whose character escaping is compatible enough with Rust’s) and `[1:-1]` to remove the single quotes.
-rw-r--r--components/style/properties/properties.mako.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs
index bcc7a6e3417..49fa22055df 100644
--- a/components/style/properties/properties.mako.rs
+++ b/components/style/properties/properties.mako.rs
@@ -44,7 +44,7 @@ pub use self::declaration_block::*;
import os.path
%>
-#[path="${os.path.join(os.path.dirname(__file__), 'declaration_block.rs')}"]
+#[path="${repr(os.path.join(os.path.dirname(__file__), 'declaration_block.rs'))[1:-1]}"]
pub mod declaration_block;
pub mod longhands {