diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-10-04 17:26:16 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-10-04 17:26:16 +0200 |
commit | 67726a94514fca53b0a775d294ac4f36c2b10350 (patch) | |
tree | 4590854a31043fedbf0c2bdf644671c17d06cb97 /doc/it | |
parent | 58c32e4249c3c462e8e12ae7d2f428fbf73b5b21 (diff) | |
download | weechat-67726a94514fca53b0a775d294ac4f36c2b10350.zip |
doc: add note about prefix for function weechat_printf in plugin API reference
Diffstat (limited to 'doc/it')
-rw-r--r-- | doc/it/weechat_plugin_api.it.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt index b98728d3a..9bddc133d 100644 --- a/doc/it/weechat_plugin_api.it.txt +++ b/doc/it/weechat_plugin_api.it.txt @@ -5945,12 +5945,21 @@ Argomenti: * 'buffer': puntatore al buffer, se NULL il messaggio viene visualizzato sul buffer di WeeChat * 'message': messaggio da visualizzare +// TRANSLATION MISSING +[NOTE] +The first tabulation in message ("\t") is used to separate prefix from message. + +If your message has some tabs and if you don't want prefix, then use a space, +a tab, then message (see example below): this will disable prefix (the space +before tab will not be displayed). + Esempio in C: [source,C] ---------------------------------------- weechat_printf (NULL, "Benvenuto sul buffer di WeeChat"); weechat_printf (buffer, "Benvenuto su questo buffer"); +weechat_printf (buffer, "%sThis is an error!", weechat_prefix ("error")); +weechat_printf (buffer, " \tMessage without prefix but with \t some \t tabs"); ---------------------------------------- Script (Python): @@ -5963,6 +5972,8 @@ weechat.prnt(buffer, message) # esempio weechat.prnt("", "Benvenuto sul buffer di WeeChat") weechat.prnt(buffer, "Benvenuto su questo buffer") +weechat.prnt(buffer, "%sThis is an error!" % weechat.prefix("error")) +weechat.prnt(buffer, " \tMessage without prefix but with \t some \t tabs") ---------------------------------------- [NOTE] |