From 0b7681b0d8f2621b3471c438b4271ae2699c437e Mon Sep 17 00:00:00 2001 From: Hoarfroster Date: Tue, 7 Jan 2025 12:48:48 +0800 Subject: [PATCH 1/3] Update index.md --- files/en-us/web/html/element/pre/index.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/en-us/web/html/element/pre/index.md b/files/en-us/web/html/element/pre/index.md index b707d9c8c363a65..1fa14c8102719ba 100644 --- a/files/en-us/web/html/element/pre/index.md +++ b/files/en-us/web/html/element/pre/index.md @@ -7,7 +7,10 @@ browser-compat: html.elements.pre {{HTMLSidebar}} -The **`
`** [HTML](/en-US/docs/Web/HTML) element represents preformatted text which is to be presented exactly as written in the HTML file. The text is typically rendered using a non-proportional, or [monospaced](https://en.wikipedia.org/wiki/Monospaced_font), font. Whitespace inside this element is displayed as written.
+The **`
`** [HTML](/en-US/docs/Web/HTML) element represents preformatted text which is to be presented exactly as written in the HTML file. The text is typically rendered using a non-proportional, or [monospaced](https://en.wikipedia.org/wiki/Monospaced_font) font. Whitespace inside this element is displayed as written.
+
+> [!NOTE]
+> A leading newline character immediately following the pre element start tag is stripped.
 
 By default, `
` is a [block-level](/en-US/docs/Glossary/Block-level_content) element, i.e. its default {{cssxref("display")}} value is `block`.
 

From 20bc72946568d4c7d19ffef2fec884af774374eb Mon Sep 17 00:00:00 2001
From: Hoarfroster 
Date: Fri, 10 Jan 2025 10:24:36 +0800
Subject: [PATCH 2/3] Update index.md

---
 files/en-us/web/html/element/pre/index.md | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/files/en-us/web/html/element/pre/index.md b/files/en-us/web/html/element/pre/index.md
index 1fa14c8102719ba..8cd19b0eddcc9f9 100644
--- a/files/en-us/web/html/element/pre/index.md
+++ b/files/en-us/web/html/element/pre/index.md
@@ -7,10 +7,9 @@ browser-compat: html.elements.pre
 
 {{HTMLSidebar}}
 
-The **`
`** [HTML](/en-US/docs/Web/HTML) element represents preformatted text which is to be presented exactly as written in the HTML file. The text is typically rendered using a non-proportional, or [monospaced](https://en.wikipedia.org/wiki/Monospaced_font) font. Whitespace inside this element is displayed as written.
+The **`
`** [HTML](/en-US/docs/Web/HTML) element represents preformatted text which is to be presented exactly as written in the HTML file. The text is typically rendered using a non-proportional, or [monospaced](https://en.wikipedia.org/wiki/Monospaced_font) font.
 
-> [!NOTE]
-> A leading newline character immediately following the pre element start tag is stripped.
+Whitespace inside this element is displayed as written, with one exception. If one or more leading newline characters are included immediately following the opening ·
· tag, the _first_ newline character is stripped.
 
 By default, `
` is a [block-level](/en-US/docs/Glossary/Block-level_content) element, i.e. its default {{cssxref("display")}} value is `block`.
 

From 21f3b91edae389d909adaad76aa2303fb49d5db7 Mon Sep 17 00:00:00 2001
From: Hoarfroster 
Date: Sat, 11 Jan 2025 21:34:42 +0800
Subject: [PATCH 3/3] fix typo

---
 files/en-us/web/html/element/pre/index.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/files/en-us/web/html/element/pre/index.md b/files/en-us/web/html/element/pre/index.md
index 8cd19b0eddcc9f9..edf71d114a288cf 100644
--- a/files/en-us/web/html/element/pre/index.md
+++ b/files/en-us/web/html/element/pre/index.md
@@ -9,7 +9,7 @@ browser-compat: html.elements.pre
 
 The **`
`** [HTML](/en-US/docs/Web/HTML) element represents preformatted text which is to be presented exactly as written in the HTML file. The text is typically rendered using a non-proportional, or [monospaced](https://en.wikipedia.org/wiki/Monospaced_font) font.
 
-Whitespace inside this element is displayed as written, with one exception. If one or more leading newline characters are included immediately following the opening ·
· tag, the _first_ newline character is stripped.
+Whitespace inside this element is displayed as written, with one exception. If one or more leading newline characters are included immediately following the opening `
` tag, the _first_ newline character is stripped.
 
 By default, `
` is a [block-level](/en-US/docs/Glossary/Block-level_content) element, i.e. its default {{cssxref("display")}} value is `block`.