New option disable_center to disable center alignment

Bug-Debian: https://github.com/tats/w3m/issues/175
Bug-Debian: https://github.com/tats/w3m/issues/185
This commit is contained in:
Tatsuya Kinoshita
2021-07-03 14:33:49 +09:00
parent ce158a2f92
commit c3784c9d26
4 changed files with 19 additions and 4 deletions

3
fm.h
View File

@@ -677,7 +677,7 @@ struct readbuffer {
#define RB_HTML5 0x400000
#define RB_GET_ALIGN(obuf) ((obuf)->flag&RB_ALIGN)
#define RB_SET_ALIGN(obuf,align) {(obuf)->flag &= ~RB_ALIGN; (obuf)->flag |= (align); }
#define RB_SET_ALIGN(obuf,align) do{(obuf)->flag &= ~RB_ALIGN; (obuf)->flag |= (align); }while(0)
#define RB_SAVE_FLAG(obuf) {\
if ((obuf)->flag_sp < RB_STACK_SIZE) \
(obuf)->flag_stack[(obuf)->flag_sp++] = RB_GET_ALIGN(obuf); \
@@ -1125,6 +1125,7 @@ global char UseAltEntity init(FALSE);
#define GRAPHIC_CHAR_CHARSET 0
global char UseGraphicChar init(GRAPHIC_CHAR_CHARSET);
global char DisplayBorders init(FALSE);
global char DisableCenter init(FALSE);
extern char *graph_symbol[];
extern char *graph2_symbol[];
extern int symbol_width;