aboutsummaryrefslogtreecommitdiffstats
path: root/frame.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-12-06 16:37:42 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-12-06 16:37:42 +0000
commit71fde51a9d317d200111a917374973e588636f3e (patch)
treed77f4b65e9666289c30dd3fe58887fbc5e3668a2 /frame.c
parent[w3m-dev 03534] cleanup file.c (diff)
downloadw3m-71fde51a9d317d200111a917374973e588636f3e.tar.gz
w3m-71fde51a9d317d200111a917374973e588636f3e.zip
[w3m-dev 03535] close anchor, quote <
* file.c (HTMLtagproc1): close_anchor * frame.c (createFrameFile): quote < From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--frame.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/frame.c b/frame.c
index e2f7eea..37eaf73 100644
--- a/frame.c
+++ b/frame.c
@@ -1,4 +1,4 @@
-/* $Id: frame.c,v 1.25 2002/12/05 16:04:00 ukai Exp $ */
+/* $Id: frame.c,v 1.26 2002/12/06 16:38:05 ukai Exp $ */
#include "fm.h"
#include "parsetagx.h"
#include "myctype.h"
@@ -600,7 +600,16 @@ createFrameFile(struct frameset *f, FILE * f1, Buffer *current, int level,
continue;
if (tok->ptr[0] == '<') {
- is_tag = TRUE;
+ if (tok->ptr[1] &&
+ REALLY_THE_BEGINNING_OF_A_TAG(tok->ptr))
+ is_tag = TRUE;
+ else if (!(pre_mode & (RB_PLAIN | RB_INTXTA |
+ RB_SCRIPT | RB_STYLE))) {
+ p = Strnew_m_charp(tok->ptr + 1, p, NULL)->ptr;
+ tok = Strnew_charp("&lt;");
+ }
+ }
+ if (is_tag) {
if (pre_mode & (RB_PLAIN | RB_INTXTA | RB_SCRIPT |
RB_STYLE)) {
q = tok->ptr;