-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed contribution/xyz.tab exception; added tests
- Loading branch information
Hans-Jörg Bibiko
committed
Nov 24, 2020
1 parent
8555591
commit bc915da
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
chapter_id entry_id meaning ${ctx.name|n}_${ctx.default_representation} ${'_'.join([ctx.name, ctx.alt_representation]) + '\t' if ctx.alt_representation else ''|}comment | ||
chapter_id entry_id meaning ${ctx.name|n}_${ctx.default_representation} ${'_'.join([ctx.name, ctx.alt_representation]) + '\t' if ctx.alt_representation else ''|}comment | ||
% for vs in sorted(ctx.valuesets, key=lambda vs: tuple(int(c) for c in vs.parameter.id.split('-'))): | ||
${vs.parameter.chapter.id} ${vs.parameter.id.split('-')[1]} ${vs.parameter.name|n} ${'; '.join(v.name for v in vs.values)|n} ${vs.alt_representation + '\t' if ctx.alt_representation else ''|n}${vs.comment|n} | ||
${vs.parameter.chapter.id} ${vs.parameter.id.split('-')[1]} ${vs.parameter.name|n} ${'; '.join(v.name for v in vs.values)|n} ${'; '.join(v.word.alt_name for v in vs.values if v.word.alt_name is not None) + '\t' if ctx.alt_representation else ''|n}${'; '.join(v.comment for v in vs.values if v.comment is not None)|n} | ||
% endfor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters