Skip to content

Commit 79e6c04

Browse files
committed
Fix desc rendering escape characters
1 parent 4a6e0da commit 79e6c04

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/android/library/src/main/java/io/package/services/Service.kt.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ import okhttp3.HttpUrl.Companion.toHttpUrl
2323
import java.io.File
2424

2525
/**
26-
* {{ service.description | raw | replace({"\n": "", "\r": ""}) }}
26+
* {{ service.description | replace({"\n": "\n * "}) | raw }}
2727
**/
2828
class {{ service.name | caseUcfirst }}(client: Client) : Service(client) {
2929

3030
{% for method in service.methods %}
3131
/**
32-
* {{ method.description | raw | replace({"\n": "", "\r": ""}) }}
32+
* {{ method.description | replace({"\n": "\n * "}) | raw }}
3333
*
3434
{%~ for parameter in method.parameters.all %}
3535
* @param {{ parameter.name | caseCamel }} {{ parameter.description | raw }}

templates/kotlin/src/main/kotlin/io/appwrite/services/ServiceTemplate.kt.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ import okhttp3.HttpUrl.Companion.toHttpUrl
1717
import java.io.File
1818

1919
/**
20-
* {{ service.description | raw | replace({"\n": "", "\r": ""}) }}
20+
* {{ service.description | replace({"\n": "\n * "}) | raw }}
2121
**/
2222
class {{ service.name | caseUcfirst }}(client: Client) : Service(client) {
2323

2424
{% for method in service.methods %}
2525
/**
26-
* {{ method.description | raw | replace({"\n": "", "\r": ""}) }}
26+
* {{ method.description | replace({"\n": "\n * "}) | raw }}
2727
*
2828
{%~ for parameter in method.parameters.all %}
2929
* @param {{ parameter.name | caseCamel }} {{ parameter.description | raw }}

0 commit comments

Comments
 (0)