Skip to content

Commit 937f07a

Browse files
committed
Fixed indentation for examples
1 parent 2850c75 commit 937f07a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/_data/api.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
desc: The id number of the webview
6262

6363
examples:
64-
- desc: |-
64+
- desc: |-
6565
```lua
6666
local function webview_callback(self, webview_id, request_id, type, data)
6767
if type == webview.CALLBACK_RESULT_URL_OK then
@@ -112,7 +112,7 @@
112112
type: boolean
113113
desc: If true, the webview will stay hidden (default=false)
114114
examples:
115-
- desc: |-
115+
- desc: |-
116116
```lua
117117
local request_id = webview.open(webview_id, "http://www.defold.com", {hidden = true})
118118
```
@@ -132,7 +132,7 @@
132132
type: table
133133
desc: "A table of options for the request. See `webview.open()`"
134134
examples:
135-
- desc: |-
135+
- desc: |-
136136
```lua
137137
local html = sys.load_resource("/main/data/test.html")
138138
local request_id = webview.open_raw(webview_id, html, {hidden = true})
@@ -153,7 +153,7 @@
153153
type: number
154154
desc: The id number of the request
155155
examples:
156-
- desc: |-
156+
- desc: |-
157157
```lua
158158
local request_id = webview.eval(webview_id, "GetMyFormData()")
159159
```

webview/api/webview.script_api

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
desc: The id number of the webview
6262

6363
examples:
64-
- desc: |-
64+
- desc: |-
6565
```lua
6666
local function webview_callback(self, webview_id, request_id, type, data)
6767
if type == webview.CALLBACK_RESULT_URL_OK then
@@ -112,7 +112,7 @@
112112
type: boolean
113113
desc: If true, the webview will stay hidden (default=false)
114114
examples:
115-
- desc: |-
115+
- desc: |-
116116
```lua
117117
local request_id = webview.open(webview_id, "http://www.defold.com", {hidden = true})
118118
```
@@ -132,7 +132,7 @@
132132
type: table
133133
desc: "A table of options for the request. See `webview.open()`"
134134
examples:
135-
- desc: |-
135+
- desc: |-
136136
```lua
137137
local html = sys.load_resource("/main/data/test.html")
138138
local request_id = webview.open_raw(webview_id, html, {hidden = true})
@@ -153,7 +153,7 @@
153153
type: number
154154
desc: The id number of the request
155155
examples:
156-
- desc: |-
156+
- desc: |-
157157
```lua
158158
local request_id = webview.eval(webview_id, "GetMyFormData()")
159159
```

0 commit comments

Comments
 (0)