We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1c357e commit 6b9740bCopy full SHA for 6b9740b
src/libfmt_macros/lib.rs
@@ -301,6 +301,8 @@ impl<'a> Parser<'a> {
301
302
fn to_span_index(&self, pos: usize) -> InnerOffset {
303
let mut pos = pos;
304
+ // This handles the raw string case, the raw argument is the number of #
305
+ // in r###"..."### (we need to add one because of the `r`).
306
let raw = self.style.map(|raw| raw + 1).unwrap_or(0);
307
for skip in &self.skips {
308
if pos > *skip {
0 commit comments