about summary refs log tree commit diff stats
path: root/WWW
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2024-03-14 16:57:47 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2024-03-14 23:39:23 +0000
commite990a678633ad6a4651cf1f0e195e87b755ee0be (patch)
tree51e293a5741b6ec35d932a8efe7ac9a11494f28c /WWW
parent66e0a52ae6c09f8fc5a821f4374ed748de418155 (diff)
downloadlynx-snapshots-e990a678633ad6a4651cf1f0e195e87b755ee0be.tar.gz
snapshot of project "lynx", label v2-9-0b
Diffstat (limited to 'WWW')
-rw-r--r--WWW/Library/Implementation/HTMLGen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/WWW/Library/Implementation/HTMLGen.c b/WWW/Library/Implementation/HTMLGen.c
index c63723c3..7cf7bb9c 100644
--- a/WWW/Library/Implementation/HTMLGen.c
+++ b/WWW/Library/Implementation/HTMLGen.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: HTMLGen.c,v 1.46 2020/01/21 22:02:35 tom Exp $
+ * $LynxId: HTMLGen.c,v 1.47 2024/03/13 23:48:59 tom Exp $
  *
  *		HTML Generator
  *		==============
@@ -160,7 +160,7 @@ static void allow_break(HTStructured * me, int new_cleanness, int dlbc)
  *	------------------
  *
  *	The tricky bits are the line break handling.  This attempts
- *	to synchrononise line breaks on sentence or phrase ends.  This
+ *	to synchronize line breaks on sentence or phrase ends.  This
  *	is important if one stores SGML files in a line-oriented code
  *	repository, so that if a small change is made, line ends don't
  *	shift in a ripple-through to apparently change a large part of the
@@ -466,7 +466,7 @@ static int HTMLGen_start_element(HTStructured * me, int element_number,
     /*
      * Make very specific HTML assumption that PRE can't be nested!
      */
-    me->preformatted = (BOOL) ((element_number == HTML_PRE)
+    me->preformatted = (BOOL) ((element_number == HTML_PRE || element_number == HTML_XMP)
 			       ? YES
 			       : was_preformatted);
 
@@ -538,7 +538,7 @@ static int HTMLGen_end_element(HTStructured * me, int element_number,
     HTMLGen_put_string(me, "</");
     HTMLGen_put_string(me, HTML_dtd.tags[element_number].name);
     HTMLGen_put_character(me, '>');
-    if (element_number == HTML_PRE) {
+    if (element_number == HTML_PRE || element_number == HTML_XMP) {
 	me->preformatted = NO;
     }
 #ifdef USE_COLOR_STYLE