replace non-breaking space characters with spaces

this is a formatting/publishing artifact that we don't need in the
Markdown, and the existence of those characters is throwing off some
other scripts

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
Brian S. Stephan 2025-04-04 13:06:14 -05:00
parent 2e80f6e111
commit 50fd495b2c
Signed by: bss
GPG Key ID: 3DE06D3180895FCB
4 changed files with 27406 additions and 139 deletions

View File

@ -9,10 +9,10 @@ all: base-patches
base-patches: $(MD_CSRD)
cp -a $(MD_CSRD) $(CCSRD)
find patches/base -type f -name *.patch -exec echo ">> {}" \; -exec patch $(CCSRD) {} \;
find patches/base -type f -name \*.patch -exec echo ">> {}" \; -exec patch $(CCSRD) {} \;
web: base-patches
find patches/web -type f -name *.patch -exec echo ">> {}" \; -exec patch $(CCSRD) {} \;
find patches/web -type f -name \*.patch -exec echo ">> {}" \; -exec patch $(CCSRD) {} \;
cp -a $(WEBDIR) $(TMPDIR)/
mkdir -p $(PAGESDIR)
cp $(CCSRD) $(PAGESDIR)/index.md

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
--- _tmp/ccsrd.md 2025-04-04 09:21:42.885587686 -0500
+++ _tmp/ccsrd.new.md 2025-04-04 10:06:00.001364856 -0500
--- _tmp/ccsrd.md 2025-04-04 13:18:16.704716294 -0500
+++ _tmp/ccsrd.new.md 2025-04-04 13:18:51.822929454 -0500
@@ -1,8 +1,8 @@
-COMMONS CYPHER SYSTEM REFERENCE DOCUMENT v0.0.1
+# COMMONS CYPHER SYSTEM REFERENCE DOCUMENT v0.0.1

View File

@ -4,4 +4,6 @@
# just a copy and paste problem in the source doc, so there's no real ability to
# make further improvements --- just remove the spaces and let other things clean
# it up.
sed -E 's/\s+$//' _tmp/ccsrd.md > _tmp/ccsrd.md.new
# Also convert some non-breaking spaces and that kind of thing in there randomly.
sed -E 's/\xc2\xa0/ /g' _tmp/ccsrd.md > _tmp/ccsrd.new.md
sed -E 's/\s+$//' -i _tmp/ccsrd.new.md