Closed
Bug 1611985
Opened 4 years ago
Closed 22 days ago
servo-tidy confused about raw strings
Categories
(Core :: Graphics: WebRender, defect, P3)
Core
Graphics: WebRender
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: bpeers, Unassigned)
References
Details
It looks like webrender-lint-tidy
doesn't understand r#
strings, so it will complain about missing spaces before/after {
and }
when it shouldn't.
For example this:
format!(r#"{}<rect x="{:.2}" y="{:.2}" width="{:.2}" height="{:.2}" {}/>"#,
needs to be rewritten as
format!("<rect x=\"{:.2}\" y=\"{:.2}\" width=\"{:.2}\" height=\"{:.2}\" {}/>",
to pass try fuzzy.
Reporter | ||
Comment 1•4 years ago
|
||
To be honest I'm not sure if the problem is due to raw strings or if it's the nested strings that confused it. For example in the code below, I had to use unicode to "hide" the =
and :
, otherwise tidy would complain that assignment and declaration need spaces around them:
let svg_begin = "<?xml\u{2d}stylesheet type\u{3d}\"text/css\" href\u{3d}\"tilecache_base.css\" ?>\n\
<?xml\u{2d}stylesheet type\u{3d}\"text/css\" href\u{3d}\"tilecache.css\" ?>\n";
Updated•4 years ago
|
Priority: -- → P3
Updated•2 years ago
|
Severity: normal → S3
Updated•22 days ago
|
Status: NEW → RESOLVED
Closed: 22 days ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•