Skip to content

Commit

Permalink
CLDR-17416 v45 BRS: fix tocs, also fix toc generator
Browse files Browse the repository at this point in the history
- fix to support CRLF on windows
- rerun tool and pickup a bad link in tr35.md
  • Loading branch information
srl295 committed Apr 9, 2024
1 parent 94e16ee commit 1480808
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/ldml/tr35.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/tr-archive/fix-tocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit 1480808

Please sign in to comment.