From 44d54544b144029eced3fd7553af8396b7b24882 Mon Sep 17 00:00:00 2001 From: Simon Gene Gottlieb Date: Tue, 17 Feb 2026 22:14:55 +0100 Subject: [PATCH] fix: handle escaped underscore `\_` correctly --- src/exp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/exp.cpp b/src/exp.cpp index 992620f..eae4ab1 100644 --- a/src/exp.cpp +++ b/src/exp.cpp @@ -117,11 +117,11 @@ std::string Escape(Stream& in) { case 'N': return "\x85"; case '_': - return "\xA0"; + return "\xC2\xA0"; // NBSP (U+00A0) case 'L': - return "\xE2\x80\xA8"; // LS (#x2028) + return "\xE2\x80\xA8"; // LS (U+2028) case 'P': - return "\xE2\x80\xA9"; // PS (#x2029) + return "\xE2\x80\xA9"; // PS (U+2029) case 'x': return Escape(in, 2); case 'u':