Skip to content

Instantly share code, notes, and snippets.

@JanMiksovsky
Last active October 16, 2024 18:22
Show Gist options
  • Save JanMiksovsky/d2a2b1442072fa6fbdfbf3ceab19eee1 to your computer and use it in GitHub Desktop.
Save JanMiksovsky/d2a2b1442072fa6fbdfbf3ceab19eee1 to your computer and use it in GitHub Desktop.
Demonstration of whitespace normalization in Origami 0.0.70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="/assets/styles.css" />
<link rel="alternate" type="application/rss+xml" title="Dispatches from off the grid" href="feed.xml">
<link rel="alternate" type="application/json" title="Dispatches from off the grid" href="feed.json">
<title>Solitude</title>
</head>
<body >
<header>
<a href="/" class="home">#pondlife</a>
<a href="/about.html" class="about">About</a>
</header>
<main>
<section>
<a href="/posts/2025-08-13.html">
<h2>Solitude</h2>
</a>
August 13, 2025
<p><img src="/images/narcissus.jpg" alt="Narcissus flowers"></p>
<p>So why did I come all the way out here away from everyone? My nearest neighbor is a mile away, and there’s no house in sight unless you climb a hill half a mile away. It’s an amazing feeling to have my horizon completely encircled by woods, with no sign of human habitation.</p>
<p>From my little spot I have a distant view of the railroad where it touches the pond on one side, and the fence skirting the woodland road on the other. But most of the time, it’s as solitary here as being out on the prairies. It feels like I have my own private universe.</p>
</section>
<p>
<a class="previous" href="2025-08-10.html">Previous: Coming home at night</a>
&nbsp;
<a class="next" href="/">
Back to home
</a>
</p>
</main>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/assets/styles.css">
<link rel="alternate" type="application/rss+xml" title="Dispatches from off the grid" href="feed.xml">
<link rel="alternate" type="application/json" title="Dispatches from off the grid" href="feed.json">
<title>Solitude</title>
</head>
<body >
<header>
<a href="/" class="home">#pondlife</a>
<a href="/about.html" class="about">About</a>
</header>
<main>
<section>
<a href="/posts/2025-08-13.html">
<h2>Solitude</h2>
</a>
August 13, 2025
<p><img src="/images/narcissus.jpg" alt="Narcissus flowers"></p>
<p>So why did I come all the way out here away from everyone? My nearest neighbor is a mile away, and there’s no house in sight unless you climb a hill half a mile away. It’s an amazing feeling to have my horizon completely encircled by woods, with no sign of human habitation.</p>
<p>From my little spot I have a distant view of the railroad where it touches the pond on one side, and the fence skirting the woodland road on the other. But most of the time, it’s as solitary here as being out on the prairies. It feels like I have my own private universe.</p>
</section>
<p>
<a class="previous" href="2025-08-10.html">Previous: Coming home at night</a>
&nbsp;
<a class="next" href="/">
Back to home
</a>
</p>
</main>
</body>
</html>
@JanMiksovsky
Copy link
Author

This shows the same HTML page generated by a project under two Origami releases to highlight whitespace normalization.

  • The "before" page shows the page rendered by Origami 0.0.69.
  • The "after" page shows the same page rendered by Origami 0.0.70 with the new @indent builtin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment