1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 09:43:13 +02:00

core: remove unneeded whitespace

This commit is contained in:
Sebastien Helleu
2011-10-26 20:37:03 +02:00
parent 2a83aae85e
commit dfdf42e27b
176 changed files with 13151 additions and 13151 deletions
+2 -2
View File
@@ -288,12 +288,12 @@ def docgen_cmd_cb(data, buffer, args):
infolists = get_infolists()
hdata = get_hdata()
completions = get_completions()
# get path and replace ~ by home if needed
path = weechat.config_get_plugin('path')
if path.startswith('~'):
path = '%s%s' % (os.environ['HOME'], path[1:])
# write to doc files, by locale
num_files = defaultdict(int)
num_files_updated = defaultdict(int)
+29 -29
View File
@@ -170,13 +170,13 @@ command_double_cb (void *data, struct t_gui_buffer *buffer, int argc,
(void) data;
(void) buffer;
(void) argv;
if (argc > 1)
{
weechat_command (NULL, argv_eol[1]);
weechat_command (NULL, argv_eol[1]);
}
return WEECHAT_RC_OK;
}
@@ -185,7 +185,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin,
int argc, char *argv[])
{
weechat_plugin = plugin;
weechat_hook_command ("double",
"Display two times a message "
"or execute two times a command",
@@ -194,7 +194,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin,
"command: command to execute two times",
NULL,
&command_double_cb, NULL);
return WEECHAT_RC_OK;
}
@@ -203,7 +203,7 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
{
/* make C compiler happy */
(void) plugin;
return WEECHAT_RC_OK;
}
----------------------------------------
@@ -3517,7 +3517,7 @@ int
my_config_reload_cb (void *data, struct t_config_file *config_file)
{
/* ... */
return WEECHAT_RC_OK;
}
@@ -3670,7 +3670,7 @@ my_section_read_cb (void *data, struct t_config_file *config_file,
const char *value)
{
/* ... */
return WEECHAT_CONFIG_OPTION_SET_OK_CHANGED;
/* return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE; */
/* return WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND; */
@@ -3682,7 +3682,7 @@ my_section_write_cb (void *data, struct t_config_file *config_file,
const char *section_name)
{
/* ... */
return WEECHAT_CONFIG_WRITE_OK;
/* return WEECHAT_CONFIG_WRITE_ERROR; */
}
@@ -3692,7 +3692,7 @@ my_section_write_default_cb (void *data, struct t_config_file *config_file,
const char *section_name)
{
/* ... */
return WEECHAT_CONFIG_WRITE_OK;
/* return WEECHAT_CONFIG_WRITE_ERROR; */
}
@@ -3703,7 +3703,7 @@ my_section_create_option_cb (void *data, struct t_config_file *config_file,
const char *option_name, const char *value)
{
/* ... */
return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE;
/* return WEECHAT_CONFIG_OPTION_SET_ERROR; */
}
@@ -3714,7 +3714,7 @@ my_section_delete_option_cb (void *data, struct t_config_file *config_file,
struct t_config_option *option)
{
/* ... */
return WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED;
/* return WEECHAT_CONFIG_OPTION_UNSET_ERROR; */
}
@@ -4998,9 +4998,9 @@ my_section_write_cb (void *data, struct t_config_file *config_file,
const char *section_name)
{
weechat_config_write_line (config_file, "my_section", NULL);
weechat_config_write_option (config_file, option);
return WEECHAT_RC_OK;
}
----------------------------------------
@@ -5050,10 +5050,10 @@ my_section_write_cb (void *data, struct t_config_file *config_file,
const char *section_name)
{
weechat_config_write_line (config_file, "my_section", NULL);
weechat_config_write_line (config_file, "option", "%s;%d",
"value", 123);
return WEECHAT_RC_OK;
}
----------------------------------------
@@ -6618,22 +6618,22 @@ my_process_cb (void *data, const char *command, int return_code,
weechat_printf (NULL, "Error with command '%s'", command);
return WEECHAT_RC_OK;
}
if (return_code >= 0)
{
weechat_printf (NULL, "return_code = %d", return_code);
}
if (out)
{
weechat_printf (NULL, "stdout: %s", out);
}
if (err)
{
weechat_printf (NULL, "stderr: %s", err);
}
return WEECHAT_RC_OK;
}
@@ -7854,10 +7854,10 @@ my_completion_cb (void *data, const char *completion_item,
{
/* get arguments of command */
const char *args = weechat_hook_completion_get_string (completion, "args");
/* completion depending on args */
/* ... */
return WEECHAT_RC_OK;
}
----------------------------------------
@@ -8034,10 +8034,10 @@ my_modifier_cb (void *data, const char *modifier,
{
char *result;
int length;
if (!string)
return NULL;
length = strlen (string) + 5;
result = malloc (length);
if (result)
@@ -8045,7 +8045,7 @@ my_modifier_cb (void *data, const char *modifier,
/* add "xxx" to any message printed */
snprintf (result, length, "%s xxx", string);
}
return result;
}
@@ -8305,10 +8305,10 @@ my_infolist_cb (void *data, const char *infolist_name, void *pointer,
const char *arguments)
{
struct t_infolist *my_infolist;
/* build infolist */
/* ... */
return my_infolist;
}
@@ -8379,10 +8379,10 @@ struct t_hdata *
my_hdata_cb (void *data, const char *hdata_name)
{
struct t_hdata *my_hdata;
/* build hdata */
/* ... */
return my_hdata;
}
@@ -8506,7 +8506,7 @@ my_focus_nicklist_cb (void *data, struct t_hashtable *info)
{
/* add strings in hashtable */
/* ... */
return info;
}
+29 -29
View File
@@ -173,13 +173,13 @@ commande_double_cb (void *data, struct t_gui_buffer *buffer, int argc,
(void) data;
(void) buffer;
(void) argv;
if (argc > 1)
{
weechat_command (NULL, argv_eol[1]);
weechat_command (NULL, argv_eol[1]);
}
return WEECHAT_RC_OK;
}
@@ -188,7 +188,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin,
int argc, char *argv[])
{
weechat_plugin = plugin;
weechat_hook_command ("double",
"Affiche deux fois un message "
"ou exécute deux fois une commande",
@@ -197,7 +197,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin,
"commande : commande à exécuter deux fois",
NULL,
&commande_double_cb, NULL);
return WEECHAT_RC_OK;
}
@@ -206,7 +206,7 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
{
/* pour que le compilateur C soit content */
(void) plugin;
return WEECHAT_RC_OK;
}
----------------------------------------
@@ -3555,7 +3555,7 @@ int
my_config_reload_cb (void *data, struct t_config_file *config_file)
{
/* ... */
return WEECHAT_RC_OK;
}
@@ -3713,7 +3713,7 @@ my_section_read_cb (void *data, struct t_config_file *config_file,
const char *value)
{
/* ... */
return WEECHAT_CONFIG_OPTION_SET_OK_CHANGED;
/* return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE; */
/* return WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND; */
@@ -3725,7 +3725,7 @@ my_section_write_cb (void *data, struct t_config_file *config_file,
const char *section_name)
{
/* ... */
return WEECHAT_CONFIG_WRITE_OK;
/* return WEECHAT_CONFIG_WRITE_ERROR; */
}
@@ -3735,7 +3735,7 @@ my_section_write_default_cb (void *data, struct t_config_file *config_file,
const char *section_name)
{
/* ... */
return WEECHAT_CONFIG_WRITE_OK;
/* return WEECHAT_CONFIG_WRITE_ERROR; */
}
@@ -3746,7 +3746,7 @@ my_section_create_option_cb (void *data, struct t_config_file *config_file,
const char *option_name, const char *value)
{
/* ... */
return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE;
/* return WEECHAT_CONFIG_OPTION_SET_ERROR; */
}
@@ -3757,7 +3757,7 @@ my_section_delete_option_cb (void *data, struct t_config_file *config_file,
struct t_config_option *option)
{
/* ... */
return WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED;
/* return WEECHAT_CONFIG_OPTION_UNSET_ERROR; */
}
@@ -5053,9 +5053,9 @@ my_section_write_cb (void *data, struct t_config_file *config_file,
const char *section_name)
{
weechat_config_write_line (config_file, "ma_section", NULL);
weechat_config_write_option (config_file, option);
return WEECHAT_RC_OK;
}
----------------------------------------
@@ -5106,10 +5106,10 @@ my_section_write_cb (void *data, struct t_config_file *config_file,
const char *section_name)
{
weechat_config_write_line (config_file, "ma_section", NULL);
weechat_config_write_line (config_file, "option", "%s;%d",
"valeur", 123);
return WEECHAT_RC_OK;
}
----------------------------------------
@@ -6710,22 +6710,22 @@ my_process_cb (void *data, const char *command, int return_code,
weechat_printf (NULL, "Erreur avec la commande '%s'", command);
return WEECHAT_RC_OK;
}
if (return_code >= 0)
{
weechat_printf (NULL, "return_code = %d", return_code);
}
if (out)
{
weechat_printf (NULL, "stdout : %s", out);
}
if (err)
{
weechat_printf (NULL, "stderr : %s", err);
}
return WEECHAT_RC_OK;
}
@@ -7975,10 +7975,10 @@ my_completion_cb (void *data, const char *completion_item,
{
/* récupère les paramètres de la commande */
const char *args = weechat_hook_completion_get_string (completion, "args");
/* complétion selon les paramètres */
/* ... */
return WEECHAT_RC_OK;
}
----------------------------------------
@@ -8163,10 +8163,10 @@ my_modifier_cb (void *data, const char *modifier,
{
char *result;
int length;
if (!string)
return NULL;
length = strlen (string) + 5;
result = malloc (length);
if (result)
@@ -8174,7 +8174,7 @@ my_modifier_cb (void *data, const char *modifier,
/* ajouter "xxx" à chaque message affiché */
snprintf (result, length, "%s xxx", string);
}
return result;
}
@@ -8444,10 +8444,10 @@ my_infolist_cb (void *data, const char *infolist_name, void *pointer,
const char *arguments)
{
struct t_infolist *mon_infolist;
/* construction de l'infolist */
/* ... */
return mon_infolist;
}
@@ -8519,10 +8519,10 @@ struct t_hdata *
my_hdata_cb (void *data, const char *hdata_name)
{
struct t_hdata *mon_hdata;
/* construction du hdata */
/* ... */
return mon_hdata;
}
@@ -8651,7 +8651,7 @@ my_focus_nicklist_cb (void *data, struct t_hashtable *info)
{
/* ajout de chaînes dans la hashtable */
/* ... */
return info;
}
+1 -1
View File
@@ -206,7 +206,7 @@ les touches vitales :
- 'tab': compléter le texte de la barre d'entrée, comme avec votre shell
- 'page préc/suiv': faire défiler le texte dans le tampon courant
- 'alt + A': sauter au tampon avec de l'activité (dans la "hotlist")
Selon votre clavier et/ou vos besoins, vous pouvez associer n'importe
quelle touche à une commande avec la commande `/key`.
Une touche utile est meta-k (alt-k) pour trouver le code des touches.
+30 -30
View File
@@ -176,13 +176,13 @@ command_double_cb (void *data, struct t_gui_buffer *buffer, int argc,
(void) data;
(void) buffer;
(void) argv;
if (argc > 1)
{
weechat_command (NULL, argv_eol[1]);
weechat_command (NULL, argv_eol[1]);
}
return WEECHAT_RC_OK;
}
@@ -191,7 +191,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin,
int argc, char *argv[])
{
weechat_plugin = plugin;
weechat_hook_command ("double",
"Visualizza due volte un messaggio "
"oppure esegue un comando due volte",
@@ -200,7 +200,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin,
"comando: comando da eseguire due volte",
NULL,
&command_double_cb, NULL);
return WEECHAT_RC_OK;
}
@@ -209,7 +209,7 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
{
/* fa felice il compilatore C */
(void) plugin;
return WEECHAT_RC_OK;
}
----------------------------------------
@@ -3511,7 +3511,7 @@ int
my_config_reload_cb (void *data, struct t_config_file *config_file)
{
/* ... */
return WEECHAT_RC_OK;
}
@@ -3664,7 +3664,7 @@ my_section_read_cb (void *data, struct t_config_file *config_file,
const char *value)
{
/* ... */
return WEECHAT_CONFIG_OPTION_SET_OK_CHANGED;
/* return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE; */
/* return WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND; */
@@ -3676,7 +3676,7 @@ my_section_write_cb (void *data, struct t_config_file *config_file,
const char *section_name)
{
/* ... */
return WEECHAT_CONFIG_WRITE_OK;
/* return WEECHAT_CONFIG_WRITE_ERROR; */
}
@@ -3686,7 +3686,7 @@ my_section_write_default_cb (void *data, struct t_config_file *config_file,
const char *section_name)
{
/* ... */
return WEECHAT_CONFIG_WRITE_OK;
/* return WEECHAT_CONFIG_WRITE_ERROR; */
}
@@ -3697,7 +3697,7 @@ my_section_create_option_cb (void *data, struct t_config_file *config_file,
const char *option_name, const char *value)
{
/* ... */
return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE;
/* return WEECHAT_CONFIG_OPTION_SET_ERROR; */
}
@@ -3708,7 +3708,7 @@ my_section_delete_option_cb (void *data, struct t_config_file *config_file,
struct t_config_option *option)
{
/* ... */
return WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED;
/* return WEECHAT_CONFIG_OPTION_UNSET_ERROR; */
}
@@ -4999,9 +4999,9 @@ my_section_write_cb (void *data, struct t_config_file *config_file,
const char *section_name)
{
weechat_config_write_line (config_file, "my_section", NULL);
weechat_config_write_option (config_file, option);
return WEECHAT_RC_OK;
}
----------------------------------------
@@ -5052,10 +5052,10 @@ my_section_write_cb (void *data, struct t_config_file *config_file,
const char *section_name)
{
weechat_config_write_line (config_file, "my_section", NULL);
weechat_config_write_line (config_file, "option", "%s;%d",
"value", 123);
return WEECHAT_RC_OK;
}
----------------------------------------
@@ -6640,22 +6640,22 @@ my_process_cb (void *data, const char *command, int return_code,
weechat_printf (NULL, "Errore con il comando '%s'", command);
return WEECHAT_RC_OK;
}
if (return_code >= 0)
{
weechat_printf (NULL, "return_code = %d", return_code);
}
if (out)
{
weechat_printf (NULL, "stdout: %s", out);
}
if (err)
{
weechat_printf (NULL, "stderr: %s", err);
}
return WEECHAT_RC_OK;
}
@@ -7898,10 +7898,10 @@ my_completion_cb (void *data, const char *completion_item,
{
/* ottiene l'argomento del comando */
const char *args = weechat_hook_completion_get_string (completion, "args");
/* completamento che dipende dagli argomenti */
/* ... */
return WEECHAT_RC_OK;
}
----------------------------------------
@@ -8084,10 +8084,10 @@ my_modifier_cb (void *data, const char *modifier,
{
char *result;
int length;
if (!string)
return NULL;
length = strlen (string) + 5;
result = malloc (length);
if (result)
@@ -8095,7 +8095,7 @@ my_modifier_cb (void *data, const char *modifier,
/* aggiunge "xxx" ad ogni messaggio stampato */
snprintf (result, length, "%s xxx", string);
}
return result;
}
@@ -8363,10 +8363,10 @@ my_infolist_cb (void *data, const char *infolist_name, void *pointer,
const char *arguments)
{
struct t_infolist *my_infolist;
/* compila lista info */
/* ... */
return my_infolist;
}
@@ -8436,10 +8436,10 @@ struct t_hdata *
my_hdata_cb (void *data, const char *hdata_name)
{
struct t_hdata *my_hdata;
/* build hdata */
/* ... */
return my_hdata;
}
@@ -8564,7 +8564,7 @@ my_focus_nicklist_cb (void *data, struct t_hashtable *info)
{
/* add strings in hashtable */
/* ... */
return info;
}
@@ -9299,7 +9299,7 @@ Argomenti:
su questo buffer (il livello può essere: -1: mai nella hotlist, 0: basso,
1: messaggio, 2: privato, 3: evento), ad esempio: "joe:2,mike:-1,robert:-1"
(joe non produce eventi sul buffer, mike e robert non modificano la hotlist)
| hotlist_max_level_nicks_add | elenco separato da virgole di "nick:livello" |
elenco separato da virgole di nick con il livello per la hotlist, questi
nick vengono aggiunti a quelli esistenti nel buffer
+7 -7
View File
@@ -148,7 +148,7 @@ W razie potrzeby, popraw zmienna TERM: `export TERM="xxx"`.
Podczas używania WeeChat pod screenem/tmuxem pojawiają mi się dziwne, losowe znaki, jak to naprawić?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Może to być spowodowane przez złą wartość zmiennej TERM w swojej powłoce (spójrz
Może to być spowodowane przez złą wartość zmiennej TERM w swojej powłoce (spójrz
na wynik `echo $TERM` w swoim terminalu, *poza screenem/tmuxem*).
Na przykład, 'xterm-color' może wyświetlać takie dziwne znaki, możesz użyc 'xterm',
@@ -232,8 +232,8 @@ Na przykład:
/bar del input
----------------------------------------
Jeśli kiedyś przestanie ci to odpowiadać, po prostu usuń ten pasek, WeeChat
automatycznie stworzy nowy pasek "input" jeśli element "input_text" nie zostanie
Jeśli kiedyś przestanie ci to odpowiadać, po prostu usuń ten pasek, WeeChat
automatycznie stworzy nowy pasek "input" jeśli element "input_text" nie zostanie
użyty w żadnym z pasków:
----------------------------------------
@@ -325,7 +325,7 @@ zalecane wartości to:
* poza screenem: 'xterm-256color', 'rxvt-256color', 'putty-256color',...
[NOTE]
Może okazać się konieczne zainstalowanie pakietu "ncurses-term" w celu użycia
Może okazać się konieczne zainstalowanie pakietu "ncurses-term" w celu użycia
tych wartości w zmiennej 'TERM'.
Jeśli używasz screena, możesz dodać to do swojego '~/.screenrc':
@@ -415,7 +415,7 @@ Lista domyślnych skrótów znajduje się w poradniku użytkownika.
Jak używać globalnej historii (zamiast historii buforu) za pomocą strzałek góra/dół?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Możesz przypisać strzałki w górę i dół do globalnej historii (domyślnie dla
Możesz przypisać strzałki w górę i dół do globalnej historii (domyślnie dla
globalnej historii przypisane są klawisze @k(C-)@k(↑) oraz @k(C-)@k(↓)).
Przykład:
@@ -426,7 +426,7 @@ Przykład:
----------------------------------------
[NOTE]
Klawisze "meta2-A" i "meta2-B" mogą być inne dla twojego terminala. W celu
Klawisze "meta2-A" i "meta2-B" mogą być inne dla twojego terminala. W celu
znalezienia ich kodów wciśnij @k(A-)@k(k) następnie przycisk (góra lub dół).
@@ -504,7 +504,7 @@ filtry (domyślnie @k(A-)@k(=) zmienia stan filtrów).
Jak mogę filtrować wiadomości o wejściu/opuszczeniu/wyjściu na kanałach IRC?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Za pomocą inteligentnych filtrów (zachowuje wejścia/opuszczenia/wyjścia od osób
Za pomocą inteligentnych filtrów (zachowuje wejścia/opuszczenia/wyjścia od osób
piszących niedawno):
----------------------------------------
+4 -4
View File
@@ -102,7 +102,7 @@ Argumenty:
* 'licencja': string, licencja
* 'opis': string, krótki opis skryptu
* 'funkcja_wyłączająca': string, nazwa funkcji wywoływanej podczas wyładowania skryptu
* 'kodowanie': string, kodowane skryptu (opcjonalne, jeśli skrypt jest napisany
* 'kodowanie': string, kodowane skryptu (opcjonalne, jeśli skrypt jest napisany
w UTF-8 można nie podawać tej wartości - UTF-8 to domyślne kodowanie)
Przykład dla skryptu w każdym z języków:
@@ -194,7 +194,7 @@ Możesz zajrzeć do 'Opisu API wtyczek WeeChat' po więcej informacji na temat
każdej z funkcji API: prototyp, argumenty, zwracane wartości, przykłady.
Ważne jest rozróżnienie 'wtyczki' od 'skryptu': 'wtyczka' jest plikiem binarnym
skompilowanym i załadowanym za pomocą komendy `/plugin`, natomiast 'skrypt' jest
skompilowanym i załadowanym za pomocą komendy `/plugin`, natomiast 'skrypt' jest
plikiem tekstowym załadowanym przez wtyczkę jak 'python' za pomocą komendy
`/python`.
@@ -596,7 +596,7 @@ weechat.hook_timer(60 * 1000, 60, 0, "timer_cb", "")
Wykonuje proces w tle
^^^^^^^^^^^^^^^^^^^^^
Do wykonywania procesów w tle służy `hook_process`. Twoje callbacki zostaną
Do wykonywania procesów w tle służy `hook_process`. Twoje callbacki zostaną
wywołane, kiedy dane będą gotowe. Może zostać wywołane wiele razy.
Dla ostatniego wykonania Twojego callbacku 'rc' jest ustawiane na 0, lub wartość
@@ -782,7 +782,7 @@ Informacje
Wersja WeeChat
^^^^^^^^^^^^^^^
Najprostszym sposobem na sprawdzenie wersji to pozyskanie "version_number"
Najprostszym sposobem na sprawdzenie wersji to pozyskanie "version_number"
i wykonanie porównania między liczbą całkowitą a heksadecymalnym numerem wersji.
Przykład: