Added newline on </div>.
The tag <div> (in contrast to the tag <span>) is normally used to denote content placed on a line by its own. So it makes sense to trigger a newline when </div> is processed.
This commit is contained in:
parent
4938877dd9
commit
374c89be01
|
@ -1,5 +1,6 @@
|
||||||
html_slasha "/a\0"
|
html_slasha "/a\0"
|
||||||
html_slashcenter "/center\0"
|
html_slashcenter "/center\0"
|
||||||
|
html_slashdiv "/div\0"
|
||||||
html_slashform "/form\0"
|
html_slashform "/form\0"
|
||||||
html_slashh "/h\0"
|
html_slashh "/h\0"
|
||||||
html_slashscript "/script\0"
|
html_slashscript "/script\0"
|
||||||
|
|
|
@ -4,6 +4,9 @@ const char html_slasha[4] =
|
||||||
const char html_slashcenter[9] =
|
const char html_slashcenter[9] =
|
||||||
/* "/center\0" */
|
/* "/center\0" */
|
||||||
{0x2f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 00, };
|
{0x2f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 00, };
|
||||||
|
const char html_slashdiv[6] =
|
||||||
|
/* "/div\0" */
|
||||||
|
{0x2f, 0x64, 0x69, 0x76, 00, };
|
||||||
const char html_slashform[7] =
|
const char html_slashform[7] =
|
||||||
/* "/form\0" */
|
/* "/form\0" */
|
||||||
{0x2f, 0x66, 0x6f, 0x72, 0x6d, 00, };
|
{0x2f, 0x66, 0x6f, 0x72, 0x6d, 00, };
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
extern const char html_slasha[4];
|
extern const char html_slasha[4];
|
||||||
extern const char html_slashcenter[9];
|
extern const char html_slashcenter[9];
|
||||||
|
extern const char html_slashdiv[6];
|
||||||
extern const char html_slashform[7];
|
extern const char html_slashform[7];
|
||||||
extern const char html_slashh[4];
|
extern const char html_slashh[4];
|
||||||
extern const char html_slashscript[9];
|
extern const char html_slashscript[9];
|
||||||
|
|
|
@ -179,53 +179,55 @@ static const char *tags[] = {
|
||||||
html_slasha,
|
html_slasha,
|
||||||
#define TAG_SLASHCENTER 1
|
#define TAG_SLASHCENTER 1
|
||||||
html_slashcenter,
|
html_slashcenter,
|
||||||
#define TAG_SLASHFORM 2
|
#define TAG_SLASHDIV 2
|
||||||
|
html_slashdiv,
|
||||||
|
#define TAG_SLASHFORM 3
|
||||||
html_slashform,
|
html_slashform,
|
||||||
#define TAG_SLASHH 3
|
#define TAG_SLASHH 4
|
||||||
html_slashh,
|
html_slashh,
|
||||||
#define TAG_SLASHSCRIPT 4
|
#define TAG_SLASHSCRIPT 5
|
||||||
html_slashscript,
|
html_slashscript,
|
||||||
#define TAG_SLASHSELECT 5
|
#define TAG_SLASHSELECT 6
|
||||||
html_slashselect,
|
html_slashselect,
|
||||||
#define TAG_SLASHSTYLE 6
|
#define TAG_SLASHSTYLE 7
|
||||||
html_slashstyle,
|
html_slashstyle,
|
||||||
#define TAG_A 7
|
#define TAG_A 8
|
||||||
html_a,
|
html_a,
|
||||||
#define TAG_BODY 8
|
#define TAG_BODY 9
|
||||||
html_body,
|
html_body,
|
||||||
#define TAG_BR 9
|
#define TAG_BR 10
|
||||||
html_br,
|
html_br,
|
||||||
#define TAG_CENTER 10
|
#define TAG_CENTER 11
|
||||||
html_center,
|
html_center,
|
||||||
#define TAG_FORM 11
|
#define TAG_FORM 12
|
||||||
html_form,
|
html_form,
|
||||||
#define TAG_FRAME 12
|
#define TAG_FRAME 13
|
||||||
html_frame,
|
html_frame,
|
||||||
#define TAG_H1 13
|
#define TAG_H1 14
|
||||||
html_h1,
|
html_h1,
|
||||||
#define TAG_H2 14
|
#define TAG_H2 15
|
||||||
html_h2,
|
html_h2,
|
||||||
#define TAG_H3 15
|
#define TAG_H3 16
|
||||||
html_h3,
|
html_h3,
|
||||||
#define TAG_H4 16
|
#define TAG_H4 17
|
||||||
html_h4,
|
html_h4,
|
||||||
#define TAG_IMG 17
|
#define TAG_IMG 18
|
||||||
html_img,
|
html_img,
|
||||||
#define TAG_INPUT 18
|
#define TAG_INPUT 19
|
||||||
html_input,
|
html_input,
|
||||||
#define TAG_LI 19
|
#define TAG_LI 20
|
||||||
html_li,
|
html_li,
|
||||||
#define TAG_P 20
|
#define TAG_P 21
|
||||||
html_p,
|
html_p,
|
||||||
#define TAG_SCRIPT 21
|
#define TAG_SCRIPT 22
|
||||||
html_script,
|
html_script,
|
||||||
#define TAG_SELECT 22
|
#define TAG_SELECT 23
|
||||||
html_select,
|
html_select,
|
||||||
#define TAG_STYLE 23
|
#define TAG_STYLE 24
|
||||||
html_style,
|
html_style,
|
||||||
#define TAG_TR 24
|
#define TAG_TR 25
|
||||||
html_tr,
|
html_tr,
|
||||||
#define TAG_LAST 25
|
#define TAG_LAST 26
|
||||||
last,
|
last,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -376,6 +378,7 @@ parse_tag(void)
|
||||||
/* FALLTHROUGH */
|
/* FALLTHROUGH */
|
||||||
case TAG_BR:
|
case TAG_BR:
|
||||||
case TAG_TR:
|
case TAG_TR:
|
||||||
|
case TAG_SLASHDIV:
|
||||||
case TAG_SLASHH:
|
case TAG_SLASHH:
|
||||||
/* parse_char(ISO_nl);*/
|
/* parse_char(ISO_nl);*/
|
||||||
dummy = 0;
|
dummy = 0;
|
||||||
|
|
Loading…
Reference in a new issue