diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2016-08-19 10:05:25 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2016-08-19 10:05:25 +0000 |
commit | 0fba2f1a6eb6861206ad120a02af2643938082cd (patch) | |
tree | 35b9ced6fdbe6c34520d2161f3d6ea5b036d85e4 /file.c | |
parent | Update ChangeLog (diff) | |
download | w3m-0fba2f1a6eb6861206ad120a02af2643938082cd.tar.gz w3m-0fba2f1a6eb6861206ad120a02af2643938082cd.zip |
Fix uninitialised values for <i> and <dd>
Bug-Debian: https://github.com/tats/w3m/issues/16
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -4686,6 +4686,12 @@ HTMLtagproc1(struct parsed_tag *tag, struct html_feed_environ *h_env) case HTML_DD: CLOSE_A; CLOSE_DT; + if (h_env->envc == 0 || + (h_env->envc_real < h_env->nenv && + envs[h_env->envc].env != HTML_DL && + envs[h_env->envc].env != HTML_DL_COMPACT)) { + PUSH_ENV(HTML_DL); + } if (envs[h_env->envc].env == HTML_DL_COMPACT) { if (obuf->pos > envs[h_env->envc].indent) flushline(h_env, obuf, envs[h_env->envc].indent, 0, |