Skip to content

Commit 1224fe1

Browse files
authored
Add single quotes to example.
In XML, both types of quote can be used in attributes without escaping, as long as the attribute itself uses the other quote type. This doesn't work when the string contains both quote types, which is when you'd consider using the verbose syntax.
1 parent f95c94a commit 1224fe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_docs/project-files/xml-format/config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ A similar syntax is also available for setting [gradle properties](https://docs.
101101
<!-- <https://docs.gradle.org/current/userguide/config_gradle.html#sec:configuring_jvm_memory> -->
102102
<gradle-properties org.gradle.jvmargs='-Xmx512m "-XX:MaxMetaspaceSize=384m"' />
103103

104-
<!-- More verbose option to avoid escaping quotes -->
104+
<!-- A more verbose option to avoid escaping quotes. -->
105105
<gradle-properties>
106-
<org.gradle.project.myProperty>hello "world"</org.gradle.project.myProperty>
106+
<org.gradle.project.myProperty>'hello' "world"</org.gradle.project.myProperty>
107107
</gradle-properties>
108108
</config:android>
109109
```

0 commit comments

Comments
 (0)