Skip to content

Commit

Permalink
Fix missing space in verses display in dipl transcription
Browse files Browse the repository at this point in the history
The words at the end of the line that do not coincide with the end of a line were attached to those of the next line. Now a space has been added.
  • Loading branch information
ChiaraDipi committed Nov 10, 2022
1 parent d514813 commit 9231c62
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/components/lb/lb.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<span class="lb"
[evtHtmlAttributes]="data?.attributes"
[attr.id]="data.id" [attr.data-rend]="data.rend || ''" [attr.data-facs]="data.facs || ''">
<br *ngIf="displayBlock$ | async"/>
<span class="lineN" *ngIf="data.n && (displayBlock$ | async)">{{data.n}}</span>
<ng-container *ngIf="data">
<br *ngIf="displayBlock$ | async"/>
<span class="lineN" *ngIf="data.n && (displayBlock$ | async)">{{data.n}}</span>
</ng-container>
<ng-container *ngIf="displayInline$ | async">&nbsp;</ng-container>
</span>
6 changes: 6 additions & 0 deletions src/app/components/lb/lb.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ export class LbComponent {
);
}

get displayInline$() {
return this.displayBlock$.pipe(
map((displayBlock) => !displayBlock),
);
}

constructor(
private evtModelService: EVTModelService,
) {
Expand Down

0 comments on commit 9231c62

Please sign in to comment.