* [w3m-dev 04238] [patch] simple preserve space

* rc.c: Introduce option simple_preserve_space.
* fm.h: add global variable SimplePreserveSpace.
* file.c (HTMLlineproc0): check SimplePreserveSpace.
This commit is contained in:
Ito Hiroyuki
2010-07-19 09:00:34 +00:00
parent 6a2579bb26
commit fd8468f7f9
4 changed files with 19 additions and 5 deletions

5
rc.c
View File

@@ -1,4 +1,4 @@
/* $Id: rc.c,v 1.106 2007/05/23 15:06:06 inu Exp $ */
/* $Id: rc.c,v 1.107 2010/07/19 09:00:34 htrb Exp $ */
/*
* Initialization file etc.
*/
@@ -229,6 +229,7 @@ static int OptionEncode = FALSE;
#define CMT_USE_JISX0213 N_("Use JIS X 0213:2000 (2000JIS)")
#define CMT_STRICT_ISO2022 N_("Strict ISO-2022-JP/KR/CN")
#define CMT_GB18030_AS_UCS N_("Treat 4 bytes char. of GB18030 as Unicode")
#define CMT_SIMPLE_PRESERVE_SPACE N_("Simple Preserve space")
#endif
#define CMT_KEYMAP_FILE N_("keymap file")
@@ -671,6 +672,8 @@ struct param_ptr params10[] = {
{"gb18030_as_ucs", P_CHARINT, PI_ONOFF, (void *)&WcOption.gb18030_as_ucs,
CMT_GB18030_AS_UCS, NULL},
#endif
{"simple_preserve_space", P_CHARINT, PI_ONOFF, (void *)&SimplePreserveSpace,
CMT_SIMPLE_PRESERVE_SPACE, NULL},
{NULL, 0, 0, NULL, NULL, NULL},
};
#endif