Skip to content

Commit

Permalink
Ecape pipes in markdown tables (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
stof authored Jan 14, 2025
1 parent a4c73e9 commit fc8d6df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/OpenIssuesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private function createIssue(string $language, ComponentCollection $componentCol
$details .= '| Id | English | Translation | Status |'.\PHP_EOL;
$details .= '| -- | -- | -- | -- |'.\PHP_EOL;
foreach ($missingTranslation->getMissingTranslations() as $missing) {
$details .= sprintf('| %d | %s | %s | %s |', $missing['id'], $missing['source'], $missing['trans'], 'needs-review-translation' === $missing['state'] ? 'Needs review' : 'Missing').\PHP_EOL;
$details .= sprintf('| %d | %s | %s | %s |', $missing['id'], str_replace('|', '\|', $missing['source']), $missing['trans'] === null ? '' : str_replace('|', '\|', $missing['trans']), 'needs-review-translation' === $missing['state'] ? 'Needs review' : 'Missing').\PHP_EOL;
}
$details .= \PHP_EOL;
}
Expand Down

0 comments on commit fc8d6df

Please sign in to comment.