Merge pull request #146 from acli/20200821_a_CLEANED

Patch to make w3m’s handling of the a element HTML5 compatible (when the stream is HTML5)
This commit is contained in:
Tatsuya Kinoshita
2020-08-30 09:57:45 +09:00
committed by GitHub
9 changed files with 41 additions and 6 deletions

3
fm.h
View File

@@ -662,6 +662,7 @@ struct readbuffer {
#endif /* FORMAT_NICE */
#define RB_DEL 0x100000
#define RB_S 0x200000
#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); }
@@ -674,7 +675,7 @@ struct readbuffer {
RB_SET_ALIGN(obuf,(obuf)->flag_stack[--(obuf)->flag_sp]); \
}
/* status flags */
/* state of token scanning finite state machine */
#define R_ST_NORMAL 0 /* normal */
#define R_ST_TAG0 1 /* within tag, just after < */
#define R_ST_TAG 2 /* within tag */