Skip to content

Commit

Permalink
fixed a dialect bug that affects PDF generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ZsgsDesign authored Mar 26, 2024
1 parent a2f33b7 commit d26acd3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions resources/views/pdf/contest/problem.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,23 @@
</div>

<div class="problem-container">
@unless(blank($dialect->description))
@unless(blank($dialect["description"]))
<div data-section="description">
{!! $dialect->description !!}
{!! $dialect["description"] !!}
</div>
@endunless

@unless(blank($dialect->input))
@unless(blank($dialect["input"]))
<h3>Input</h3>
<div data-section="input">
{!! $dialect->input !!}
{!! $dialect["input"] !!}
</div>
@endunless

@unless(blank($dialect->output))
@unless(blank($dialect["output"]))
<h3>Output</h3>
<div data-section="output">
{!! $dialect->output !!}
{!! $dialect["output"] !!}
</div>
@endunless

Expand All @@ -60,10 +60,10 @@
])
@endforeach

@unless(blank($dialect->note))
@unless(blank($dialect["note"]))
<h3>Note</h3>
<div data-section="note">
{!! $dialect->note !!}
{!! $dialect["note"] !!}
</div>
@endunless
</div>

0 comments on commit d26acd3

Please sign in to comment.