From 1480808b7e1a59679d3c8df0f724671e6f0ecd0c Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Tue, 9 Apr 2024 13:58:49 -0500 Subject: [PATCH] CLDR-17416 v45 BRS: fix tocs, also fix toc generator - fix to support CRLF on windows - rerun tool and pickup a bad link in tr35.md --- docs/ldml/tr35.md | 4 ++-- tools/scripts/tr-archive/fix-tocs.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/ldml/tr35.md b/docs/ldml/tr35.md index da2c37a3079..d0af18741bd 100644 --- a/docs/ldml/tr35.md +++ b/docs/ldml/tr35.md @@ -4124,8 +4124,8 @@ Other contributors to CLDR are listed on the [CLDR Project Page](https://www.uni * Part 6: [Supplemental](tr35-info.md#Contents) * In [Mixed Units](tr35-info.md#mixed-units), clarified many aspects of mixed units (such as foot-and-inch), including how to handle rounding and precision. - * In [Testing](tr35-info.html#testing), listed the additional test files. - * In [Unit Preferences Overrides](tr35-info.html#Unit_Preferences_Overrides), made substantial changes including + * In [Testing](tr35-info.md#testing), listed the additional test files. + * In [Unit Preferences Overrides](tr35-info.md#Unit_Preferences_Overrides), made substantial changes including handling of edge cases, such as where there is no quantity for a unit, or no preference data for a quantity; how to handle invalid subtags; negative unit amounts; diff --git a/tools/scripts/tr-archive/fix-tocs.js b/tools/scripts/tr-archive/fix-tocs.js index 3a987682e28..9b87bb29ef2 100644 --- a/tools/scripts/tr-archive/fix-tocs.js +++ b/tools/scripts/tr-archive/fix-tocs.js @@ -50,7 +50,7 @@ async function processFile(f) { const contents = await fs.readFile(f, 'utf-8'); // now, reinsert - const lines = contents.split('\n'); + const lines = contents.split(/(?:\r)?\n/); // new lines go into this array. const out = [];