File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
arduino-ide-extension/src/node Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ export class ClangFormatter implements Formatter {
75
75
) ;
76
76
return `-style=file:"${ first } "` ;
77
77
}
78
- return `-style=' ${ style ( toClangOptions ( options ) ) } ' ` ;
78
+ return `-style=" ${ style ( toClangOptions ( options ) ) } " ` ;
79
79
}
80
80
81
81
private async dataDirPath ( ) : Promise < string > {
@@ -123,7 +123,7 @@ function toClangOptions(
123
123
124
124
// See: https://releases.llvm.org/11.0.1/tools/clang/docs/ClangFormatStyleOptions.html
125
125
export function style ( { TabWidth, UseTab } : ClangFormatOptions ) : string {
126
- return JSON . stringify ( styleJson ( { TabWidth, UseTab } ) ) ;
126
+ return JSON . stringify ( styleJson ( { TabWidth, UseTab } ) ) . replace ( / \" / g , '\\"' ) ;
127
127
}
128
128
129
129
function styleJson ( {
You can’t perform that action at this time.
0 commit comments