diff --git a/docs/README.md b/docs/README.md
index 0ef201b8a..07c642807 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -232,15 +232,11 @@ The following event types may be sent with a message event:
| Parameter | Type | Method | Description | Default | Required? |
| --------- | ---- | ------ | ----------- | ------- | --------- |
| query | string | GET | Search string to match against messages | N/A | NO |
-| message_type | string | GET | Limit results to message type | N/A
-
-Values:
-
+| message_type | string | GET | Limit results to message type | N/A
Values:
- `history`
- `message`
- `attachment`
-- `media`
-| NO |
+- `media` | NO |
# Members
diff --git a/docs/README.php b/docs/README.php
index 667e46bf2..0a8bb1ef5 100755
--- a/docs/README.php
+++ b/docs/README.php
@@ -27,7 +27,9 @@ function cleanUp($contents) {
}
$empty = false;
}
- return implode("\n", $lines);
+ $contents = implode("\n", $lines);
+ $contents = str_replace("`\n|", "` |", $contents);
+ return $contents;
}
$spec = json_decode(file_get_contents("src/_spec.json"), true);
diff --git a/docs/README.tpl b/docs/README.tpl
index 88bbb3665..28c1c3871 100644
--- a/docs/README.tpl
+++ b/docs/README.tpl
@@ -15,13 +15,10 @@
{foreach $call.parameters as $method => $params}
{foreach $params as $param}
| {param.name} | {param.type} | {method|toupper} | {param.title} | {if empty($param.default)}N/A{else}{param.default}{/if}
-{if $param.values}
-
-Values:
-
-{foreach $param.values as $value}- `{value}`
-{/foreach}
-{/if} | {if $param.required}YES{else}NO{/if} |
+{if $param.values}
Values:
+{foreach $param.values as $value}
+- `{value}`
+{/foreach}{/if} | {if $param.required}YES{else}NO{/if} |
{/foreach}
{/foreach}