Skip to content

Commit

Permalink
fix word break in Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
gflohr committed Feb 5, 2025
1 parent bc860d6 commit a8b18ef
Show file tree
Hide file tree
Showing 5 changed files with 711 additions and 706 deletions.
6 changes: 4 additions & 2 deletions apps/server/scripts/extract-business-terms.mts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ console.log('name: business-terms');
console.log('section: other');
console.log('description: This table maps all EN16931 business terms and'
+ ' business groups to their respective XML elements.');
console.log('styles: "<style>td { word-break: break-all }</style>"')
console.log('---');
console.log('<!-- This file is generated! Do not edit! -->');
console.log('| Term | Usage |');
Expand All @@ -41,10 +42,11 @@ for (const term of sortedTerms) {
for (const path of businessTerms[term]) {
const hyph = path.replace(/:/g, '-').replace('ubl-Invoice', 'ubl-invoice');
const link = `https://docs.peppol.eu/poacc/billing/3.0/syntax${hyph}/`;
usage.push(`[${path}](${link})`);
const breakablePath = path.replace(/\//g, '&hairsp;/');
usage.push(`[${breakablePath}](${link})`);
}

console.log(`| ${term} | ${usage.join(' ')} |`);
console.log(`| ${term} | ${usage.join('<br />')} |`);
}

function recurseSchema(
Expand Down
Loading

0 comments on commit a8b18ef

Please sign in to comment.