This commit is contained in:
Gordon Williams 2014-05-20 12:47:03 +01:00
parent 11ec65a68c
commit f85bbd0124
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ def htmlify(d):
d = re.sub(r'```([^`]+)```', r'<code>\1</code>', d) # code tags
d = re.sub(r'`([^`]+)`', r'<code>\1</code>', d) # code tags
d = re.sub(r'\[([^\]]*)\]\(([^\)]*)\)', r'<a href="\2">\1</a>', d) # links tags
d = re.sub(r'[^">](http://[^ ]+)', r'<a href="\1">\1</a>', d) # links tags
d = re.sub(r'([^">])(http://[^ ]+)', r'\1<a href="\2">\2</a>', d) # links tags
return d
def html_description(ds,current):

View File

@ -34,7 +34,7 @@ void jswrap_interface_setBusyIndicator(JsVar *pinVar) {
/*JSON{ "type":"function", "name" : "setSleepIndicator",
"description" : ["When Espruino is asleep, set the pin specified here low (when it's awake, set it high). Set this to undefined to disable the feature.",
"Please see [http://www.espruino.com/Power+Consumption] for more details on this."],
"Please see http://www.espruino.com/Power+Consumption for more details on this."],
"generate" : "jswrap_interface_setSleepIndicator",
"params" : [ [ "pin", "JsVar", ""] ]
}*/
@ -50,7 +50,7 @@ void jswrap_interface_setSleepIndicator(JsVar *pinVar) {
/*JSON{ "type":"function", "name" : "setDeepSleep",
"description" : [ "Set whether we can enter deep sleep mode, which reduces power consumption to around 100uA. This only works on the Espruino Board.",
"Please see [http://www.espruino.com/Power+Consumption] for more details on this." ],
"Please see http://www.espruino.com/Power+Consumption for more details on this." ],
"generate" : "jswrap_interface_setDeepSleep",
"params" : [ [ "sleep", "bool", ""] ]
}*/