diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-07-05 16:45:48 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-07-05 16:45:48 +0200 |
commit | 2b7b8cb36539c73847e8ab05d5bc02eed9821815 (patch) | |
tree | 0d2917c968b21737b65b55d6257c618f1d4a33ab /doc/de | |
parent | bdcb9fb5d70236ae983c173179960a9e4753d1a6 (diff) | |
download | weechat-2b7b8cb36539c73847e8ab05d5bc02eed9821815.zip |
doc: fix style of C/Python examples in docs
Diffstat (limited to 'doc/de')
-rw-r--r-- | doc/de/weechat_scripting.de.asciidoc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/de/weechat_scripting.de.asciidoc b/doc/de/weechat_scripting.de.asciidoc index 30e8bb7bd..ef229c586 100644 --- a/doc/de/weechat_scripting.de.asciidoc +++ b/doc/de/weechat_scripting.de.asciidoc @@ -594,9 +594,9 @@ Beispiele: ---- buffer = weechat.current_buffer() -nummer = weechat.buffer_get_integer(buffer, "number") -name = weechat.buffer_get_string(buffer, "name") -kurz_name = weechat.buffer_get_string(buffer, "short_name") +nummer = weechat.buffer_get_integer(buffer, "number") +name = weechat.buffer_get_string(buffer, "name") +kurz_name = weechat.buffer_get_string(buffer, "short_name") ---- Es ist möglich lokale Variablen eines Buffers hinzuzufügen, zu @@ -745,7 +745,7 @@ def my_process_cb(data, command, rc, out, err): return weechat.WEECHAT_RC_OK weechat.hook_process_hashtable("url:http://weechat.org/files/src/weechat-devel.tar.gz", - { "file_out": "/tmp/weechat-devel.tar.gz" }, + {"file_out": "/tmp/weechat-devel.tar.gz"}, 30 * 1000, "my_process_cb", "") ---- @@ -889,7 +889,7 @@ Man kann IRC Nachrichten mittels einer info_hashtable mit dem Namen "irc_message [source,python] ---- dict = weechat.info_get_hashtable("irc_message_parse", - { "message": ":nick!user@host PRIVMSG #weechat :message here" }) + {"message": ":nick!user@host PRIVMSG #weechat :message here"}) weechat.prnt("", "dict: %s" % dict) # output: |